9
0
Fork 0

ARM panda: do not set gpio direction of heartbeat LED

We now have gpio_request. When we call gpio_direction_output before
registering a led_gpio the gpio will be implicitely requested by the
gpio core. gpio_request in the led core will then fail resulting in
an unregistered LED.
Fix this by removing the call to gpio_direction_output. The LED core
will do this anyway.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2013-01-14 13:40:50 +01:00
parent 50da59975f
commit 958eaf4c9d
1 changed files with 0 additions and 1 deletions

View File

@ -119,7 +119,6 @@ struct gpio_led panda_leds[] = {
static void panda_led_init(void)
{
gpio_direction_output(7, 0);
led_gpio_register(&panda_leds[0]);
led_set_trigger(LED_TRIGGER_HEARTBEAT, &panda_leds[0].led);
}