Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Wei Yongjun and committed by
Linus Walleij
2207a4e1 5b81d55c

+1 -3
+1 -3
drivers/pinctrl/vt8500/pinctrl-wmt.c
··· 570 570 571 571 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 572 572 data->base = devm_ioremap_resource(&pdev->dev, res); 573 - if (IS_ERR(data->base)) { 574 - dev_err(&pdev->dev, "failed to map memory resource\n"); 573 + if (IS_ERR(data->base)) 575 574 return PTR_ERR(data->base); 576 - } 577 575 578 576 wmt_desc.pins = data->pins; 579 577 wmt_desc.npins = data->npins;