mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-16 05:26:07 +00:00
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>
This commit is contained in:
parent
5b81d55c4c
commit
2207a4e1ca
@ -570,10 +570,8 @@ int wmt_pinctrl_probe(struct platform_device *pdev,
|
|||||||
|
|
||||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||||
data->base = devm_ioremap_resource(&pdev->dev, res);
|
data->base = devm_ioremap_resource(&pdev->dev, res);
|
||||||
if (IS_ERR(data->base)) {
|
if (IS_ERR(data->base))
|
||||||
dev_err(&pdev->dev, "failed to map memory resource\n");
|
|
||||||
return PTR_ERR(data->base);
|
return PTR_ERR(data->base);
|
||||||
}
|
|
||||||
|
|
||||||
wmt_desc.pins = data->pins;
|
wmt_desc.pins = data->pins;
|
||||||
wmt_desc.npins = data->npins;
|
wmt_desc.npins = data->npins;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user