]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
gpio: moxart: remove redundant dev_err call in moxart_gpio_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 16 Dec 2013 02:12:38 +0000 (10:12 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 20 Dec 2013 09:22:19 +0000 (10:22 +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 <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-moxart.c

index 79b93415c6200b5b88b7491b167d30eab08a3441..2af990022cc974b7f634644baf23948cc117adab 100644 (file)
@@ -121,11 +121,8 @@ static int moxart_gpio_probe(struct platform_device *pdev)
 
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        mgc->base = devm_ioremap_resource(dev, res);
-       if (IS_ERR(mgc->base)) {
-               dev_err(dev, "%s: devm_ioremap_resource res_gpio failed\n",
-                       dev->of_node->full_name);
+       if (IS_ERR(mgc->base))
                return PTR_ERR(mgc->base);
-       }
 
        mgc->gpio.dev = dev;