diff mbox

[3/4] dma: imx-dma: Replace printk with dev_*

Message ID 1393093008-19667-3-git-send-email-shc_work@mail.ru (mailing list archive)
State Accepted
Commit 1d94fe0601de
Delegated to: Vinod Koul
Headers show

Commit Message

Alexander Shiyan Feb. 22, 2014, 6:16 p.m. UTC
Use the dev_* message logging API instead of raw printk.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 drivers/dma/imx-dma.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Comments

Vinod Koul March 6, 2014, 3:21 p.m. UTC | #1
On Sat, Feb 22, 2014 at 10:16:47PM +0400, Alexander Shiyan wrote:
> Use the dev_* message logging API instead of raw printk.
> 
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Applied, thanks
diff mbox

Patch

diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx-dma.c
index bc78142..609efcf 100644
--- a/drivers/dma/imx-dma.c
+++ b/drivers/dma/imx-dma.c
@@ -423,12 +423,12 @@  static irqreturn_t imxdma_err_handler(int irq, void *dev_id)
 		/* Tasklet error handler */
 		tasklet_schedule(&imxdma->channel[i].dma_tasklet);
 
-		printk(KERN_WARNING
-		       "DMA timeout on channel %d -%s%s%s%s\n", i,
-		       errcode & IMX_DMA_ERR_BURST ?    " burst" : "",
-		       errcode & IMX_DMA_ERR_REQUEST ?  " request" : "",
-		       errcode & IMX_DMA_ERR_TRANSFER ? " transfer" : "",
-		       errcode & IMX_DMA_ERR_BUFFER ?   " buffer" : "");
+		dev_warn(imxdma->dev,
+			 "DMA timeout on channel %d -%s%s%s%s\n", i,
+			 errcode & IMX_DMA_ERR_BURST ?    " burst" : "",
+			 errcode & IMX_DMA_ERR_REQUEST ?  " request" : "",
+			 errcode & IMX_DMA_ERR_TRANSFER ? " transfer" : "",
+			 errcode & IMX_DMA_ERR_BUFFER ?   " buffer" : "");
 	}
 	return IRQ_HANDLED;
 }