Heiner Kallweit d84d80f38f leds: core: avoid error message when a USB LED device is unplugged
When a USB LED device is unplugged the remove call chain calls
led_classdev_unregister which tries to switch the LED off.
As the device has been removed already this results in a ENODEV
error message in dmesg.
Avoid this error message by ignoring ENODEV in calls from
led_classdev_unregister if the LED device is flagged as pluggable.

Therefore a new flag LED_HW_PLUGGABLE was introduced which should be set by
all LED drivers handling pluggable LED devices (mainly USB LED devices).

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
2016-03-14 09:22:20 +01:00
..
2016-01-04 09:57:32 +01:00
2016-01-04 09:57:32 +01:00
2016-01-04 09:57:34 +01:00
2016-01-04 09:57:34 +01:00
2016-01-04 09:57:35 +01:00
2016-01-04 09:57:36 +01:00
2016-01-04 09:57:32 +01:00
2016-01-04 09:57:32 +01:00
2016-01-04 09:57:33 +01:00
2016-01-04 09:57:33 +01:00
2016-01-04 09:57:33 +01:00
2016-01-04 09:57:33 +01:00
2016-01-04 09:57:33 +01:00
2016-01-04 09:57:33 +01:00
2016-01-04 09:57:33 +01:00
2016-01-04 09:57:34 +01:00
2016-01-04 09:57:37 +01:00
2016-01-04 09:57:35 +01:00