summaryrefslogtreecommitdiff
path: root/drivers/dma/pl330.c
diff options
context:
space:
mode:
authorXu Jianqun <jay.xu@rock-chips.com>2017-05-04 11:57:33 +0800
committerHuang, Tao <huangtao@rock-chips.com>2017-05-04 14:53:05 +0800
commite25503f147cf665b6fc910983859d9f94eaf0d00 (patch)
tree955d3c742c3eb89442c2b7feca0d622faaf6c9c7 /drivers/dma/pl330.c
parentdf9708384ffea16efcb787fc537cc17e4449b2b9 (diff)
dmaengine: pl330: fix error message to dev_err_ratelimited
Change-Id: I4d1191f5b7d330c2786eaac42213b4d255b05db8 Signed-off-by: Xu Jianqun <jay.xu@rock-chips.com>
Diffstat (limited to 'drivers/dma/pl330.c')
-rw-r--r--drivers/dma/pl330.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index 5e0c2607176f..b49dd585cfd7 100644
--- a/drivers/dma/pl330.c
+++ b/drivers/dma/pl330.c
@@ -1616,8 +1616,8 @@ static int pl330_update(struct pl330_dmac *pl330)
if (pl330->pcfg.num_events < 32
&& val & ~((1 << pl330->pcfg.num_events) - 1)) {
pl330->dmac_tbd.reset_dmac = true;
- dev_err(pl330->ddma.dev, "%s:%d Unexpected!\n", __func__,
- __LINE__);
+ dev_err_ratelimited(pl330->ddma.dev, "%s:%d Unexpected!\n",
+ __func__, __LINE__);
ret = 1;
goto updt_exit;
}