diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2020-01-02 14:38:19 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-01-07 23:33:08 +0100 |
commit | 1bec84ddd85ae7a2b1df5fef3a5c7e5c44cbe36e (patch) | |
tree | 01d2bb03c2956364fa68e1b173dc920c0001b909 /drivers/spi | |
parent | spi: sh-msiof: Convert to generic unused native cs handling. (diff) | |
download | linux-1bec84ddd85ae7a2b1df5fef3a5c7e5c44cbe36e.tar.xz linux-1bec84ddd85ae7a2b1df5fef3a5c7e5c44cbe36e.zip |
spi: rspi: Use dev_warn_once() instead of open-coding
Use the helper introduced by commit e135303bd5bebcd2 ("device: Add
dev_<level>_once variants") instead of open-coding the same operation.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20200102133822.29346-4-geert+renesas@glider.be
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-rspi.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/spi/spi-rspi.c b/drivers/spi/spi-rspi.c index 74a12f4dee84..e54a25f848ea 100644 --- a/drivers/spi/spi-rspi.c +++ b/drivers/spi/spi-rspi.c @@ -620,9 +620,8 @@ no_dma_tx: dmaengine_terminate_all(rspi->ctlr->dma_rx); no_dma_rx: if (ret == -EAGAIN) { - pr_warn_once("%s %s: DMA not available, falling back to PIO\n", - dev_driver_string(&rspi->ctlr->dev), - dev_name(&rspi->ctlr->dev)); + dev_warn_once(&rspi->ctlr->dev, + "DMA not available, falling back to PIO\n"); } return ret; } |