aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2017-02-06 11:23:02 -0500
committerShawn Guo <shawnguo@kernel.org>2017-03-08 06:40:33 -0500
commite3a059c0ba9f2b8284065de6997770d4604077fa (patch)
tree46e9a1eb00031a3d1faa3bb1ed9ab15b04298a03
parentc1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201 (diff)
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>
-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,
125 125
126 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 126 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
127 pcubase = devm_ioremap_resource(&pdev->dev, res); 127 pcubase = devm_ioremap_resource(&pdev->dev, res);
128 if (IS_ERR(pcubase)) { 128 if (IS_ERR(pcubase))
129 dev_err(&pdev->dev, "ioremap fail.\n");
130 return PTR_ERR(pcubase); 129 return PTR_ERR(pcubase);
131 }
132 130
133 for (i = 0; i < domain_num; ++i) { 131 for (i = 0; i < domain_num; ++i) {
134 zx_pm_domains[i]->power_on = zx2967_power_on; 132 zx_pm_domains[i]->power_on = zx2967_power_on;