]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
pinctrl: vt8500: wmt: remove redundant dev_err call in wmt_pinctrl_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 26 Jun 2013 01:56:30 +0000 (09:56 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 27 Jun 2013 09:51:51 +0000 (11:51 +0200)
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>
Acked-by: Tony Prisk <linux@prisktech.co.nz>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/vt8500/pinctrl-wmt.c

index fb30edf31f98797664ed2c5dff11c2b97793c0d4..0cc4335bc0f232bf7021cb72e48ed0ff639f1491 100644 (file)
@@ -570,10 +570,8 @@ int wmt_pinctrl_probe(struct platform_device *pdev,
 
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        data->base = devm_ioremap_resource(&pdev->dev, res);
-       if (IS_ERR(data->base)) {
-               dev_err(&pdev->dev, "failed to map memory resource\n");
+       if (IS_ERR(data->base))
                return PTR_ERR(data->base);
-       }
 
        wmt_desc.pins = data->pins;
        wmt_desc.npins = data->npins;