Commit 76838a8f authored by Wei Yongjun's avatar Wei Yongjun Committed by Jonathan Cameron

iio: adc: ingenic: remove redundant dev_err call in ingenic_adc_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: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 6b079a80
...@@ -302,10 +302,8 @@ static int ingenic_adc_probe(struct platform_device *pdev) ...@@ -302,10 +302,8 @@ static int ingenic_adc_probe(struct platform_device *pdev)
mem_base = platform_get_resource(pdev, IORESOURCE_MEM, 0); mem_base = platform_get_resource(pdev, IORESOURCE_MEM, 0);
adc->base = devm_ioremap_resource(dev, mem_base); adc->base = devm_ioremap_resource(dev, mem_base);
if (IS_ERR(adc->base)) { if (IS_ERR(adc->base))
dev_err(dev, "Unable to ioremap mmio resource\n");
return PTR_ERR(adc->base); return PTR_ERR(adc->base);
}
adc->clk = devm_clk_get(dev, "adc"); adc->clk = devm_clk_get(dev, "adc");
if (IS_ERR(adc->clk)) { if (IS_ERR(adc->clk)) {
......
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