1
0
Fork 0

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: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: David Lechner <david@lechnology.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
hifive-unleashed-5.1
Wei Yongjun 2018-03-22 02:11:48 +00:00 committed by Stephen Boyd
parent 58e1e2d2cd
commit fc3fcb4ff1
2 changed files with 2 additions and 6 deletions

View File

@ -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);
}

View File

@ -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);