Commit ca0ae81d authored by Wei Yongjun's avatar Wei Yongjun Committed by Linus Walleij

gpio: moxart: remove redundant dev_err call in moxart_gpio_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 <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 50d7c9c8
...@@ -121,11 +121,8 @@ static int moxart_gpio_probe(struct platform_device *pdev) ...@@ -121,11 +121,8 @@ static int moxart_gpio_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
mgc->base = devm_ioremap_resource(dev, res); mgc->base = devm_ioremap_resource(dev, res);
if (IS_ERR(mgc->base)) { if (IS_ERR(mgc->base))
dev_err(dev, "%s: devm_ioremap_resource res_gpio failed\n",
dev->of_node->full_name);
return PTR_ERR(mgc->base); return PTR_ERR(mgc->base);
}
mgc->gpio.dev = dev; mgc->gpio.dev = dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment