iio: adc: ingenic: remove redundant dev_err call in ingenic_adc_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 18 Feb 2019 06:57:35 +0000 (06:57 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 4 Apr 2019 19:19:40 +0000 (20:19 +0100)
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: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ingenic-adc.c

index 6ee1673..92b1d50 100644 (file)
@@ -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)) {