[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1564048118-8593-1-git-send-email-dingxiang@cmss.chinamobile.com>
Date: Thu, 25 Jul 2019 17:48:38 +0800
From: Ding Xiang <dingxiang@...s.chinamobile.com>
To: srinivas.kandagatla@...aro.org
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] nvmem: remove redundant dev_err message
devm_ioremap_resource already contains error message, so remove
the redundant dev_err message
Signed-off-by: Ding Xiang <dingxiang@...s.chinamobile.com>
---
drivers/nvmem/bcm-ocotp.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/nvmem/bcm-ocotp.c b/drivers/nvmem/bcm-ocotp.c
index a809751..460a220 100644
--- a/drivers/nvmem/bcm-ocotp.c
+++ b/drivers/nvmem/bcm-ocotp.c
@@ -271,10 +271,8 @@ static int bcm_otpc_probe(struct platform_device *pdev)
/* Get OTP base address register. */
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
priv->base = devm_ioremap_resource(dev, res);
- if (IS_ERR(priv->base)) {
- dev_err(dev, "unable to map I/O memory\n");
+ if (IS_ERR(priv->base))
return PTR_ERR(priv->base);
- }
/* Enable CPU access to OTPC. */
writel(readl(priv->base + OTPC_MODE_REG_OFFSET) |
--
1.9.1
Powered by blists - more mailing lists