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:
parent
50da59975f
commit
958eaf4c9d
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue