diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-06-25 21:56:30 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-06-27 05:51:51 -0400 |
commit | 2207a4e1ca6a1bb126360b6d0c236af6664532f2 (patch) | |
tree | 1bb54f840313f7dfa312abc1202b664187a6bada | |
parent | 5b81d55c4ccf23b9de398f819571dfc8941c7b04 (diff) |
pinctrl: vt8500: wmt: remove redundant dev_err call in wmt_pinctrl_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>
Acked-by: Tony Prisk <linux@prisktech.co.nz>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/pinctrl/vt8500/pinctrl-wmt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pinctrl/vt8500/pinctrl-wmt.c b/drivers/pinctrl/vt8500/pinctrl-wmt.c index fb30edf31f98..0cc4335bc0f2 100644 --- a/drivers/pinctrl/vt8500/pinctrl-wmt.c +++ b/drivers/pinctrl/vt8500/pinctrl-wmt.c | |||
@@ -570,10 +570,8 @@ int wmt_pinctrl_probe(struct platform_device *pdev, | |||
570 | 570 | ||
571 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 571 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
572 | data->base = devm_ioremap_resource(&pdev->dev, res); | 572 | data->base = devm_ioremap_resource(&pdev->dev, res); |
573 | if (IS_ERR(data->base)) { | 573 | if (IS_ERR(data->base)) |
574 | dev_err(&pdev->dev, "failed to map memory resource\n"); | ||
575 | return PTR_ERR(data->base); | 574 | return PTR_ERR(data->base); |
576 | } | ||
577 | 575 | ||
578 | wmt_desc.pins = data->pins; | 576 | wmt_desc.pins = data->pins; |
579 | wmt_desc.npins = data->npins; | 577 | wmt_desc.npins = data->npins; |