]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
soc: zte: pm_domains: Remove redundant dev_err call in zx2967_pd_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 6 Feb 2017 16:23:02 +0000 (16:23 +0000)
committerShawn Guo <shawnguo@kernel.org>
Wed, 8 Mar 2017 11:40:33 +0000 (12:40 +0100)
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>
drivers/soc/zte/zx2967_pm_domains.c

index 61c8d84bf31560725439904c0d4e1fc8dbe8775f..c42aeaaa34bab184e1e64008abd2c58ae0bce45e 100644 (file)
@@ -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;