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

[ARM] 4150/1: AT91: LED update

The GPIO pin setup should be handed by the platform-setup code, and not
directly by the driver.

Original patch from David Brownell.

Signed-off-by: Andrew Victor <andrew@sanpeople.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

Andrew Victor and committed by
Russell King
da11d02c 3392b309

+12 -4
+4
arch/arm/mach-at91/at91rm9200_devices.c
··· 594 594 595 595 void __init at91_init_leds(u8 cpu_led, u8 timer_led) 596 596 { 597 + /* Enable GPIO to access the LEDs */ 598 + at91_set_gpio_output(cpu_led, 1); 599 + at91_set_gpio_output(timer_led, 1); 600 + 597 601 at91_leds_cpu = cpu_led; 598 602 at91_leds_timer = timer_led; 599 603 }
+4
arch/arm/mach-at91/at91sam9260_devices.c
··· 515 515 516 516 void __init at91_init_leds(u8 cpu_led, u8 timer_led) 517 517 { 518 + /* Enable GPIO to access the LEDs */ 519 + at91_set_gpio_output(cpu_led, 1); 520 + at91_set_gpio_output(timer_led, 1); 521 + 518 522 at91_leds_cpu = cpu_led; 519 523 at91_leds_timer = timer_led; 520 524 }
+4
arch/arm/mach-at91/at91sam9261_devices.c
··· 513 513 514 514 void __init at91_init_leds(u8 cpu_led, u8 timer_led) 515 515 { 516 + /* Enable GPIO to access the LEDs */ 517 + at91_set_gpio_output(cpu_led, 1); 518 + at91_set_gpio_output(timer_led, 1); 519 + 516 520 at91_leds_cpu = cpu_led; 517 521 at91_leds_timer = timer_led; 518 522 }
-4
arch/arm/mach-at91/leds.c
··· 86 86 if (!at91_leds_timer || !at91_leds_cpu) 87 87 return -ENODEV; 88 88 89 - /* Enable PIO to access the LEDs */ 90 - at91_set_gpio_output(at91_leds_timer, 1); 91 - at91_set_gpio_output(at91_leds_cpu, 1); 92 - 93 89 leds_event = at91_leds_event; 94 90 95 91 leds_event(led_start);