]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
leds: tlc591xxt: hide error on EPROBE_DEFER
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 17 Apr 2020 11:37:58 +0000 (14:37 +0300)
committerPavel Machek <pavel@ucw.cz>
Fri, 17 Apr 2020 13:39:07 +0000 (15:39 +0200)
commitba50e011b142cfe739ff2c64957dbba95797a912
tree9cc3cce2693c8af98a6b9c4fbf793e69610f6940
parentca99522667ad239267e3c17773dbabb482c1ceac
leds: tlc591xxt: hide error on EPROBE_DEFER

If devm_led_classdev_register_ext() fails with EPROBE_DEFER, we get:

tlc591xx 0-0040: couldn't register LED (null)

Only print the error if the error is something else than EPROBE_DEFER.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-tlc591xx.c