Re: [PATCH] leds: leds-gpio: Fix legacy GPIO number case

2014-11-06 Thread Rafael J. Wysocki
On 11/6/2014 12:23 PM, Geert Uytterhoeven wrote: In the legacy case, led_dat->gpiod is initialized correctly, but overwritten later by template->gpiod, which is NULL, causing leds-gpio to fail with: gpiod_direction_output: invalid GPIO leds-gpio: probe of leds-gpio failed with error -2

Re: [PATCH] leds: leds-gpio: Fix legacy GPIO number case

2014-11-06 Thread Mika Westerberg
On Thu, Nov 06, 2014 at 12:23:23PM +0100, Geert Uytterhoeven wrote: > In the legacy case, led_dat->gpiod is initialized correctly, but > overwritten later by template->gpiod, which is NULL, causing leds-gpio > to fail with: > > gpiod_direction_output: invalid GPIO > leds-gpio: probe of led

[PATCH] leds: leds-gpio: Fix legacy GPIO number case

2014-11-06 Thread Geert Uytterhoeven
In the legacy case, led_dat->gpiod is initialized correctly, but overwritten later by template->gpiod, which is NULL, causing leds-gpio to fail with: gpiod_direction_output: invalid GPIO leds-gpio: probe of leds-gpio failed with error -22 Move the initialization of led_dat->gpiod from tem