From e25503f147cf665b6fc910983859d9f94eaf0d00 Mon Sep 17 00:00:00 2001 From: Xu Jianqun Date: Thu, 4 May 2017 11:57:33 +0800 Subject: [PATCH] dmaengine: pl330: fix error message to dev_err_ratelimited Change-Id: I4d1191f5b7d330c2786eaac42213b4d255b05db8 Signed-off-by: Xu Jianqun --- drivers/dma/pl330.c | 4 ++-- 1 file 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; } -- 2.34.1