leds: class: The -ENOTSUPP should never be seen by user space
authorAndy Shevchenko <andy.shevchenko@gmail.com>
Mon, 10 May 2021 09:50:18 +0000 (12:50 +0300)
committerPavel Machek <pavel@ucw.cz>
Fri, 28 May 2021 09:59:59 +0000 (11:59 +0200)
commit0ac40af86077982a5346dbc9655172d2775d6b08
treea48d130f8b9aefb0afdda846a59295a6c11adc95
parentdb30c91add87fb49a63798e204c467e611dc2718
leds: class: The -ENOTSUPP should never be seen by user space

Drop the bogus error code and let of_led_get() to take care about absent
of_node.

Fixes: e389240ad992 ("leds: Add managed API to get a LED from a device driver")
Cc: Jean-Jacques Hiblot <jjhiblot@ti.com>
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/led-class.c