Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: at91: move at91_init_leds to board init

This will also allow to finally move the gpio driver to platform device/driver.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>

authored by

Jean-Christophe PLAGNIOL-VILLARD and committed by
Nicolas Ferre
7eb1dbb3 71b149b3

+31 -33
+2 -3
arch/arm/mach-at91/board-csb337.c
··· 47 47 { 48 48 /* Initialize processor: 3.6864 MHz crystal */ 49 49 at91_initialize(3686400); 50 - 51 - /* Setup the LEDs */ 52 - at91_init_leds(AT91_PIN_PB0, AT91_PIN_PB1); 53 50 } 54 51 55 52 static struct macb_platform_data __initdata csb337_eth_data = { ··· 219 222 220 223 static void __init csb337_board_init(void) 221 224 { 225 + /* Setup the LEDs */ 226 + at91_init_leds(AT91_PIN_PB0, AT91_PIN_PB1); 222 227 /* Serial */ 223 228 /* DBGU on ttyS0 */ 224 229 at91_register_uart(0, 0, 0);
+3 -3
arch/arm/mach-at91/board-ecbat91.c
··· 50 50 51 51 /* Initialize processor: 18.432 MHz crystal */ 52 52 at91_initialize(18432000); 53 - 54 - /* Setup the LEDs */ 55 - at91_init_leds(AT91_PIN_PC7, AT91_PIN_PC7); 56 53 } 57 54 58 55 static struct macb_platform_data __initdata ecb_at91eth_data = { ··· 139 142 140 143 static void __init ecb_at91board_init(void) 141 144 { 145 + /* Setup the LEDs */ 146 + at91_init_leds(AT91_PIN_PC7, AT91_PIN_PC7); 147 + 142 148 /* Serial */ 143 149 /* DBGU on ttyS0. (Rx & Tx only) */ 144 150 at91_register_uart(0, 0, 0);
+2 -3
arch/arm/mach-at91/board-eco920.c
··· 37 37 at91rm9200_set_type(ARCH_REVISON_9200_PQFP); 38 38 39 39 at91_initialize(18432000); 40 - 41 - /* Setup the LEDs */ 42 - at91_init_leds(AT91_PIN_PB0, AT91_PIN_PB1); 43 40 } 44 41 45 42 static struct macb_platform_data __initdata eco920_eth_data = { ··· 94 97 95 98 static void __init eco920_board_init(void) 96 99 { 100 + /* Setup the LEDs */ 101 + at91_init_leds(AT91_PIN_PB0, AT91_PIN_PB1); 97 102 /* DBGU on ttyS0. (Rx & Tx only */ 98 103 at91_register_uart(0, 0, 0); 99 104 at91_add_device_serial();
+3 -3
arch/arm/mach-at91/board-kafa.c
··· 47 47 48 48 /* Initialize processor: 18.432 MHz crystal */ 49 49 at91_initialize(18432000); 50 - 51 - /* Set up the LEDs */ 52 - at91_init_leds(AT91_PIN_PB4, AT91_PIN_PB4); 53 50 } 54 51 55 52 static struct macb_platform_data __initdata kafa_eth_data = { ··· 67 70 68 71 static void __init kafa_board_init(void) 69 72 { 73 + /* Set up the LEDs */ 74 + at91_init_leds(AT91_PIN_PB4, AT91_PIN_PB4); 75 + 70 76 /* Serial */ 71 77 /* DBGU on ttyS0. (Rx & Tx only) */ 72 78 at91_register_uart(0, 0, 0);
+3 -3
arch/arm/mach-at91/board-kb9202.c
··· 50 50 51 51 /* Initialize processor: 10 MHz crystal */ 52 52 at91_initialize(10000000); 53 - 54 - /* Set up the LEDs */ 55 - at91_init_leds(AT91_PIN_PC19, AT91_PIN_PC18); 56 53 } 57 54 58 55 static struct macb_platform_data __initdata kb9202_eth_data = { ··· 97 100 98 101 static void __init kb9202_board_init(void) 99 102 { 103 + /* Set up the LEDs */ 104 + at91_init_leds(AT91_PIN_PC19, AT91_PIN_PC18); 105 + 100 106 /* Serial */ 101 107 /* DBGU on ttyS0. (Rx & Tx only) */ 102 108 at91_register_uart(0, 0, 0);
+3 -3
arch/arm/mach-at91/board-rm9200dk.c
··· 50 50 { 51 51 /* Initialize processor: 18.432 MHz crystal */ 52 52 at91_initialize(18432000); 53 - 54 - /* Setup the LEDs */ 55 - at91_init_leds(AT91_PIN_PB2, AT91_PIN_PB2); 56 53 } 57 54 58 55 static struct macb_platform_data __initdata dk_eth_data = { ··· 176 179 177 180 static void __init dk_board_init(void) 178 181 { 182 + /* Setup the LEDs */ 183 + at91_init_leds(AT91_PIN_PB2, AT91_PIN_PB2); 184 + 179 185 /* Serial */ 180 186 /* DBGU on ttyS0. (Rx & Tx only) */ 181 187 at91_register_uart(0, 0, 0);
+3 -3
arch/arm/mach-at91/board-rm9200ek.c
··· 50 50 { 51 51 /* Initialize processor: 18.432 MHz crystal */ 52 52 at91_initialize(18432000); 53 - 54 - /* Setup the LEDs */ 55 - at91_init_leds(AT91_PIN_PB1, AT91_PIN_PB2); 56 53 } 57 54 58 55 static struct macb_platform_data __initdata ek_eth_data = { ··· 147 150 148 151 static void __init ek_board_init(void) 149 152 { 153 + /* Setup the LEDs */ 154 + at91_init_leds(AT91_PIN_PB1, AT91_PIN_PB2); 155 + 150 156 /* Serial */ 151 157 /* DBGU on ttyS0. (Rx & Tx only) */ 152 158 at91_register_uart(0, 0, 0);
+3 -3
arch/arm/mach-at91/board-rsi-ews.c
··· 35 35 { 36 36 /* Initialize processor: 18.432 MHz crystal */ 37 37 at91_initialize(18432000); 38 - 39 - /* Setup the LEDs */ 40 - at91_init_leds(AT91_PIN_PB6, AT91_PIN_PB9); 41 38 } 42 39 43 40 /* ··· 184 187 */ 185 188 static void __init rsi_ews_board_init(void) 186 189 { 190 + /* Setup the LEDs */ 191 + at91_init_leds(AT91_PIN_PB6, AT91_PIN_PB9); 192 + 187 193 /* Serial */ 188 194 /* DBGU on ttyS0. (Rx & Tx only) */ 189 195 /* This one is for debugging */
+3 -3
arch/arm/mach-at91/board-sam9-l9260.c
··· 48 48 { 49 49 /* Initialize processor: 18.432 MHz crystal */ 50 50 at91_initialize(18432000); 51 - 52 - /* Setup the LEDs */ 53 - at91_init_leds(AT91_PIN_PA9, AT91_PIN_PA6); 54 51 } 55 52 56 53 /* ··· 167 170 168 171 static void __init ek_board_init(void) 169 172 { 173 + /* Setup the LEDs */ 174 + at91_init_leds(AT91_PIN_PA9, AT91_PIN_PA6); 175 + 170 176 /* Serial */ 171 177 /* DBGU on ttyS0. (Rx & Tx only) */ 172 178 at91_register_uart(0, 0, 0);
+3 -3
arch/arm/mach-at91/board-sam9261ek.c
··· 58 58 { 59 59 /* Initialize processor: 18.432 MHz crystal */ 60 60 at91_initialize(18432000); 61 - 62 - /* Setup the LEDs */ 63 - at91_init_leds(AT91_PIN_PA13, AT91_PIN_PA14); 64 61 } 65 62 66 63 /* ··· 567 570 568 571 static void __init ek_board_init(void) 569 572 { 573 + /* Setup the LEDs */ 574 + at91_init_leds(AT91_PIN_PA13, AT91_PIN_PA14); 575 + 570 576 /* Serial */ 571 577 /* DBGU on ttyS0. (Rx & Tx only) */ 572 578 at91_register_uart(0, 0, 0);
+3 -3
arch/arm/mach-at91/board-yl-9200.c
··· 58 58 59 59 /* Initialize processor: 18.432 MHz crystal */ 60 60 at91_initialize(18432000); 61 - 62 - /* Setup the LEDs D2=PB17 (timer), D3=PB16 (cpu) */ 63 - at91_init_leds(AT91_PIN_PB16, AT91_PIN_PB17); 64 61 } 65 62 66 63 /* ··· 540 543 541 544 static void __init yl9200_board_init(void) 542 545 { 546 + /* Setup the LEDs D2=PB17 (timer), D3=PB16 (cpu) */ 547 + at91_init_leds(AT91_PIN_PB16, AT91_PIN_PB17); 548 + 543 549 /* Serial */ 544 550 /* DBGU on ttyS0. (Rx & Tx only) */ 545 551 at91_register_uart(0, 0, 0);