diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2017-11-30 08:38:50 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-11-30 11:57:06 -0500 |
commit | 5d8e614f6cf8850657edbd1859391a2ae45b4488 (patch) | |
tree | 3f12919b7b0667568e5672573a6aa30727d77a6a /drivers/spi/spi-sh-msiof.c | |
parent | 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323 (diff) |
spi: sh-msiof: 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
functionality.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-sh-msiof.c')
-rw-r--r-- | drivers/spi/spi-sh-msiof.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c index fcd261f98b9f..81a9144f5442 100644 --- a/drivers/spi/spi-sh-msiof.c +++ b/drivers/spi/spi-sh-msiof.c | |||
@@ -912,9 +912,8 @@ static int sh_msiof_transfer_one(struct spi_master *master, | |||
912 | 912 | ||
913 | ret = sh_msiof_dma_once(p, tx_buf, rx_buf, l); | 913 | ret = sh_msiof_dma_once(p, tx_buf, rx_buf, l); |
914 | if (ret == -EAGAIN) { | 914 | if (ret == -EAGAIN) { |
915 | pr_warn_once("%s %s: DMA not available, falling back to PIO\n", | 915 | dev_warn_once(&p->pdev->dev, |
916 | dev_driver_string(&p->pdev->dev), | 916 | "DMA not available, falling back to PIO\n"); |
917 | dev_name(&p->pdev->dev)); | ||
918 | break; | 917 | break; |
919 | } | 918 | } |
920 | if (ret) | 919 | if (ret) |