Skip to content
Snippets Groups Projects
user avatar
Dmitry Eremin-Solenikov authored
If there are leds present in the OF tree, but the GPIOs for (some) of
them are unavailable, led_data doesn't get populated with correct
devices. Then, on device unbinding, one can crash the kernel.

Workaround this by setting led->gpio to invalid value early.

Signed-off-by: default avatarDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: default avatarRichard Purdie <rpurdie@linux.intel.com>
0b4634fc
History
Name Last commit Last update