summaryrefslogtreecommitdiff
path: root/drivers/leds/blink
diff options
context:
space:
mode:
authorAndy Shevchenko <andy.shevchenko@gmail.com>2021-05-29 14:19:27 +0300
committerPavel Machek <pavel@ucw.cz>2021-08-03 23:46:11 +0200
commit1ed4d05e0a0b23ba15e0affcff4008dd537ae3ee (patch)
tree85171ebb8050f4ed963786959c77ad2c4c06824e /drivers/leds/blink
parent9999908ca1abee7aa518a4f6a3739517c137acbf (diff)
downloadlwn-1ed4d05e0a0b23ba15e0affcff4008dd537ae3ee.tar.gz
lwn-1ed4d05e0a0b23ba15e0affcff4008dd537ae3ee.zip
leds: lgm-sso: Don't spam logs when probe is deferred
When requesting GPIO line the probe can be deferred. In such case don't spam logs with an error message. This can be achieved by switching to dev_err_probe(). Fixes: c3987cd2bca3 ("leds: lgm: Add LED controller driver for LGM SoC") Cc: Amireddy Mallikarjuna reddy <mallikarjunax.reddy@linux.intel.com> Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Pavel Machek <pavel@ucw.cz>
Diffstat (limited to 'drivers/leds/blink')
-rw-r--r--drivers/leds/blink/leds-lgm-sso.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/blink/leds-lgm-sso.c b/drivers/leds/blink/leds-lgm-sso.c
index 62ce83cea553..ca9f88996819 100644
--- a/drivers/leds/blink/leds-lgm-sso.c
+++ b/drivers/leds/blink/leds-lgm-sso.c
@@ -644,7 +644,7 @@ __sso_led_dt_parse(struct sso_led_priv *priv, struct fwnode_handle *fw_ssoled)
fwnode_child,
GPIOD_ASIS, NULL);
if (IS_ERR(led->gpiod)) {
- dev_err(dev, "led: get gpio fail!\n");
+ dev_err_probe(dev, PTR_ERR(led->gpiod), "led: get gpio fail!\n");
goto __dt_err;
}