From: Wei Yongjun Date: Wed, 26 Jun 2013 01:56:30 +0000 (+0800) Subject: pinctrl: vt8500: wmt: remove redundant dev_err call in wmt_pinctrl_probe() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2207a4e1ca6a1bb126360b6d0c236af6664532f2;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Tony Prisk Signed-off-by: Linus Walleij --- 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, 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;