dmaengine: pl330: fix error message to dev_err_ratelimited
authorXu Jianqun <jay.xu@rock-chips.com>
Thu, 4 May 2017 03:57:33 +0000 (11:57 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 4 May 2017 06:53:05 +0000 (14:53 +0800)
Change-Id: I4d1191f5b7d330c2786eaac42213b4d255b05db8
Signed-off-by: Xu Jianqun <jay.xu@rock-chips.com>
drivers/dma/pl330.c

index 5e0c2607176fab6bcf19686b06dc57a35a66f2ba..b49dd585cfd76227a73f6085ca6f861df13b43bd 100644 (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;
        }