From: Wei Yongjun <[email protected]> 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 <[email protected]> --- v1 -> v2: rebased and include Jonas. --- drivers/gpio/gpio-moxart.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpio/gpio-moxart.c b/drivers/gpio/gpio-moxart.c index 4ecd195..0311578 100644 --- a/drivers/gpio/gpio-moxart.c +++ b/drivers/gpio/gpio-moxart.c @@ -120,11 +120,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; -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
