spi: dw: Quite logging on deferred controller registration
authorSerge Semin <Sergey.Semin@baikalelectronics.ru>
Mon, 22 Aug 2022 18:18:53 +0000 (21:18 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 23 Aug 2022 12:06:36 +0000 (13:06 +0100)
commit52c135d495ca019abbacf063f5ef43bd5b189070
tree3f299a4ac9f664e3d544c5d269aefd3cac9bbcaf
parent52069b2a869ebdcaedf829730730c5998d56b910
spi: dw: Quite logging on deferred controller registration

It's pretty possible to have the spi_register_controller() method
returning -EPROBE_DEFER status in case, for instance, if the GPIOs used
for the CS implementation aren't ready to be requested due to the
corresponding platform devices still pending to be probed. Let's make sure
the DW SSI driver won't print error message in that case by calling the
dev_err_probe() function if the SPI-registration procedure exited with
a non-zero status.

Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220822181853.23063-1-Sergey.Semin@baikalelectronics.ru
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-dw-core.c