leds: pwm-multicolor: Don't show -EPROBE_DEFER as errors
authorEmil Renner Berthing <emil.renner.berthing@canonical.com>
Tue, 5 Jul 2022 21:01:40 +0000 (23:01 +0200)
committerPavel Machek <pavel@ucw.cz>
Sun, 17 Jul 2022 11:01:43 +0000 (13:01 +0200)
commit399e7aa82105ea46d8998fa535b047541c48030f
treea651b7dcb26f59b8fd133b4e0d1f4967ae73b0c7
parent67bce62ac1959d8b7d731fc201694942f50a01b7
leds: pwm-multicolor: Don't show -EPROBE_DEFER as errors

When requesting a PWM it might return -EPROBE_DEFER if it hasn't probed
yet. This is not an error, so just propagate the -EPROBE_DEFER without
logging anything. There is already dev_err_probe for exactly this
situation.

Fixes: 9fa2762110dd ("leds: Add PWM multicolor driver")
Signed-off-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/rgb/leds-pwm-multicolor.c