leds: lm3697: Don't spam logs when probe is deferred
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 10 May 2021 09:50:39 +0000 (12:50 +0300)
committerPavel Machek <pavel@ucw.cz>
Fri, 28 May 2021 10:00:15 +0000 (12:00 +0200)
commit807553f8bf4afa673750e52905e0f9488179112f
treed01b0baa5819bcb30b489a44a6587f8599b9c23e
parentf55db1c7fadc2a29c9fa4ff3aec98dbb111f2206
leds: lm3697: 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: 5c1d824cda9f ("leds: lm3697: Introduce the lm3697 driver")
Cc: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-lm3697.c