[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20200916062003.190186-1-miaoqinglang@huawei.com>
Date: Wed, 16 Sep 2020 14:20:03 +0800
From: Qinglang Miao <miaoqinglang@...wei.com>
To: Jun Nie <jun.nie@...aro.org>, Shawn Guo <shawnguo@...nel.org>,
"Russell King" <linux@...linux.org.uk>
CC: <linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>,
Qinglang Miao <miaoqinglang@...wei.com>
Subject: [PATCH v2] ARM: zx: remove redundant dev_err call in zx296702_pd_probe()
There is an error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.
Signed-off-by: Qinglang Miao <miaoqinglang@...wei.com>
---
arch/arm/mach-zx/zx296702-pm-domain.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/arch/arm/mach-zx/zx296702-pm-domain.c b/arch/arm/mach-zx/zx296702-pm-domain.c
index 7a08bf9dd..ac44ea8e6 100644
--- a/arch/arm/mach-zx/zx296702-pm-domain.c
+++ b/arch/arm/mach-zx/zx296702-pm-domain.c
@@ -169,10 +169,8 @@ static int zx296702_pd_probe(struct platform_device *pdev)
}
pcubase = devm_ioremap_resource(&pdev->dev, res);
- if (IS_ERR(pcubase)) {
- dev_err(&pdev->dev, "ioremap fail.\n");
+ if (IS_ERR(pcubase))
return -EIO;
- }
for (i = 0; i < ARRAY_SIZE(zx296702_pm_domains); ++i)
pm_genpd_init(zx296702_pm_domains[i], NULL, false);
--
2.23.0
Powered by blists - more mailing lists