]> git.baikalelectronics.ru Git - kernel.git/commitdiff
pinctrl: ingenic: Remove redundant dev_err call in ingenic_pinctrl_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 17 Jan 2018 11:29:17 +0000 (11:29 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 18 Jan 2018 07:51:32 +0000 (08:51 +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: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-ingenic.c

index 372ddf386bdb9ebfab7b65b0210eedad463fdf4f..ac38a3f9f86bf6aab07cfb66d4f5a1f4e65b4b1f 100644 (file)
@@ -736,10 +736,8 @@ static int ingenic_pinctrl_probe(struct platform_device *pdev)
 
        base = devm_ioremap_resource(dev,
                        platform_get_resource(pdev, IORESOURCE_MEM, 0));
-       if (IS_ERR(base)) {
-               dev_err(dev, "Failed to ioremap registers\n");
+       if (IS_ERR(base))
                return PTR_ERR(base);
-       }
 
        jzpc->map = devm_regmap_init_mmio(dev, base,
                        &ingenic_pinctrl_regmap_config);