leds: pwm: silently error out on EPROBE_DEFER
authorJerome Brunet <jbrunet@baylibre.com>
Thu, 6 Sep 2018 13:59:04 +0000 (15:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2019 17:42:29 +0000 (19:42 +0200)
commit041ef4231cae4ed533c0a050b0b60629ac9b02da
treec0b79cd3869a75b9ffea59b1870f3d7b1388c546
parentcab51e8f9c549b2566e1584e3911dc080b2751d2
leds: pwm: silently error out on EPROBE_DEFER

[ Upstream commit 9aec30371fb095a0c9415f3f0146ae269c3713d8 ]

When probing, if we fail to get the pwm due to probe deferal, we shouldn't
print an error message. Just be silent in this case.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
drivers/leds/leds-pwm.c