Skip to content

Commit

Permalink
soc: zte: pm_domains: Remove redundant dev_err call in zx2967_pd_probe()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and Shawn Guo committed Mar 8, 2017
1 parent c1ae3cf commit e3a059c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/soc/zte/zx2967_pm_domains.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e3a059c

Please sign in to comment.