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

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
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -302,10 +302,8 @@ static int ingenic_adc_probe(struct platform_device *pdev)

	mem_base = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	adc->base = devm_ioremap_resource(dev, mem_base);
	if (IS_ERR(adc->base)) {
		dev_err(dev, "Unable to ioremap mmio resource\n");
	if (IS_ERR(adc->base))
		return PTR_ERR(adc->base);
	}

	adc->clk = devm_clk_get(dev, "adc");
	if (IS_ERR(adc->clk)) {