diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-01-14 13:40:50 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-01-14 13:40:52 +0100 |
commit | 958eaf4c9db390ec744985d94826f56df5702870 (patch) | |
tree | 295af09799fc73816292bffca887cc9e41fd50e7 /arch/arm/boards/panda/board.c | |
parent | 50da59975f32e46d1208a348dbfa52849f602ecd (diff) | |
download | barebox-958eaf4c9db390ec744985d94826f56df5702870.tar.gz barebox-958eaf4c9db390ec744985d94826f56df5702870.tar.xz |
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>
Diffstat (limited to 'arch/arm/boards/panda/board.c')
-rw-r--r-- | arch/arm/boards/panda/board.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/arm/boards/panda/board.c b/arch/arm/boards/panda/board.c index 4ca2a81a6d..c5d8fe6409 100644 --- a/arch/arm/boards/panda/board.c +++ b/arch/arm/boards/panda/board.c @@ -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); } |