summaryrefslogtreecommitdiff
path: root/drivers/mxc/Kconfig
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2014-11-06 12:23:23 +0100
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2015-09-18 14:18:45 +0200
commit0af9b8ce16daa1dd51828484be2b8a2d1b40ed6f (patch)
tree11f1d4ca08a2b187eaeccd4ae475475419839ada /drivers/mxc/Kconfig
parentbec610d7744d24e25d936424709df36ab92a3994 (diff)
leds: leds-gpio: Fix legacy GPIO number case
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 template->gpiod up, and always use led_dat->gpiod later, to fix this. Fixes: 5c51277a9ababfa4 (leds: leds-gpio: Add support for GPIO descriptors) Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> (cherry picked from commit ec98a4975e66a3aa366cd227edab027b01adea37)
Diffstat (limited to 'drivers/mxc/Kconfig')
0 files changed, 0 insertions, 0 deletions