summaryrefslogtreecommitdiffstats
path: root/drivers/soc/zte
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2017-02-06 16:23:02 +0000
committerShawn Guo <shawnguo@kernel.org>2017-03-08 12:40:33 +0100
commite3a059c0ba9f2b8284065de6997770d4604077fa (patch)
tree46e9a1eb00031a3d1faa3bb1ed9ab15b04298a03 /drivers/soc/zte
parentc1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201 (diff)
downloadlinux-e3a059c0ba9f2b8284065de6997770d4604077fa.tar.bz2
soc: zte: pm_domains: Remove redundant dev_err call in zx2967_pd_probe()
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'drivers/soc/zte')
-rw-r--r--drivers/soc/zte/zx2967_pm_domains.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/soc/zte/zx2967_pm_domains.c b/drivers/soc/zte/zx2967_pm_domains.c
index 61c8d84bf315..c42aeaaa34ba 100644
--- a/drivers/soc/zte/zx2967_pm_domains.c
+++ b/drivers/soc/zte/zx2967_pm_domains.c
@@ -125,10 +125,8 @@ int zx2967_pd_probe(struct platform_device *pdev,
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
pcubase = devm_ioremap_resource(&pdev->dev, res);
- if (IS_ERR(pcubase)) {
- dev_err(&pdev->dev, "ioremap fail.\n");
+ if (IS_ERR(pcubase))
return PTR_ERR(pcubase);
- }
for (i = 0; i < domain_num; ++i) {
zx_pm_domains[i]->power_on = zx2967_power_on;