Commit fc3fcb4f authored by Wei Yongjun's avatar Wei Yongjun Committed by Stephen Boyd

clk: davinci: Remove redundant dev_err calls

There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: default avatarDavid Lechner <david@lechnology.com>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 58e1e2d2
......@@ -814,10 +814,8 @@ static int davinci_pll_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
base = devm_ioremap_resource(dev, res);
if (IS_ERR(base)) {
dev_err(dev, "ioremap failed\n");
if (IS_ERR(base))
return PTR_ERR(base);
}
return pll_init(dev, base);
}
......
......@@ -521,10 +521,8 @@ static int davinci_psc_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
base = devm_ioremap_resource(dev, res);
if (IS_ERR(base)) {
dev_err(dev, "ioremap failed\n");
if (IS_ERR(base))
return PTR_ERR(base);
}
ret = devm_clk_bulk_get(dev, init_data->num_parent_clks,
init_data->parent_clks);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment