Commit 5d8e614f authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Mark Brown

spi: sh-msiof: Use dev_warn_once() instead of open-coding

Use the helper introduced by commit e135303b ("device: Add
dev_<level>_once variants") instead of open-coding the same
functionality.
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 4fbd8d19
...@@ -912,9 +912,8 @@ static int sh_msiof_transfer_one(struct spi_master *master, ...@@ -912,9 +912,8 @@ static int sh_msiof_transfer_one(struct spi_master *master,
ret = sh_msiof_dma_once(p, tx_buf, rx_buf, l); ret = sh_msiof_dma_once(p, tx_buf, rx_buf, l);
if (ret == -EAGAIN) { if (ret == -EAGAIN) {
pr_warn_once("%s %s: DMA not available, falling back to PIO\n", dev_warn_once(&p->pdev->dev,
dev_driver_string(&p->pdev->dev), "DMA not available, falling back to PIO\n");
dev_name(&p->pdev->dev));
break; break;
} }
if (ret) if (ret)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment