dmaengine: pl330: fix error message to dev_err_ratelimited

Change-Id: I4d1191f5b7d330c2786eaac42213b4d255b05db8
Signed-off-by: Xu Jianqun <jay.xu@rock-chips.com>
This commit is contained in:
Xu Jianqun
2017-05-04 11:57:33 +08:00
committed by Huang, Tao
parent df9708384f
commit e25503f147

View File

@@ -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;
}