diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-12-15 21:12:38 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-12-20 04:22:19 -0500 |
commit | ca0ae81d13d9ddb8b94fadc11d5c76b5499ac1b9 (patch) | |
tree | bb8d06c52f7157ddfec15286a68464433c1dc16f /drivers/gpio/gpio-moxart.c | |
parent | 50d7c9c841176887e138422045f53c7ce607a3da (diff) |
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: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-moxart.c')
-rw-r--r-- | drivers/gpio/gpio-moxart.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpio/gpio-moxart.c b/drivers/gpio/gpio-moxart.c index 79b93415c620..2af990022cc9 100644 --- a/drivers/gpio/gpio-moxart.c +++ b/drivers/gpio/gpio-moxart.c | |||
@@ -121,11 +121,8 @@ static int moxart_gpio_probe(struct platform_device *pdev) | |||
121 | 121 | ||
122 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 122 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
123 | mgc->base = devm_ioremap_resource(dev, res); | 123 | mgc->base = devm_ioremap_resource(dev, res); |
124 | if (IS_ERR(mgc->base)) { | 124 | if (IS_ERR(mgc->base)) |
125 | dev_err(dev, "%s: devm_ioremap_resource res_gpio failed\n", | ||
126 | dev->of_node->full_name); | ||
127 | return PTR_ERR(mgc->base); | 125 | return PTR_ERR(mgc->base); |
128 | } | ||
129 | 126 | ||
130 | mgc->gpio.dev = dev; | 127 | mgc->gpio.dev = dev; |
131 | 128 | ||