Commit 19fdcb1d authored by Shang XiaoJing's avatar Shang XiaoJing Committed by Linus Walleij

pinctrl: bcm: ns: Remove redundant dev_err call

devm_ioremap_resource() prints error message in itself. Remove the
dev_err call to avoid redundant error message.
Signed-off-by: default avatarShang XiaoJing <shangxiaojing@huawei.com>
Acked-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Acked-by: default avatarRay Jui <ray.jui@broadcom.com>
Link: https://lore.kernel.org/r/20220923101038.18036-1-shangxiaojing@huawei.comSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 8ea8af6c
...@@ -233,10 +233,8 @@ static int ns_pinctrl_probe(struct platform_device *pdev) ...@@ -233,10 +233,8 @@ static int ns_pinctrl_probe(struct platform_device *pdev)
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
"cru_gpio_control"); "cru_gpio_control");
ns_pinctrl->base = devm_ioremap_resource(dev, res); ns_pinctrl->base = devm_ioremap_resource(dev, res);
if (IS_ERR(ns_pinctrl->base)) { if (IS_ERR(ns_pinctrl->base))
dev_err(dev, "Failed to map pinctrl regs\n");
return PTR_ERR(ns_pinctrl->base); return PTR_ERR(ns_pinctrl->base);
}
memcpy(pctldesc, &ns_pinctrl_desc, sizeof(*pctldesc)); memcpy(pctldesc, &ns_pinctrl_desc, sizeof(*pctldesc));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment