Skip to content

Commit 19fdcb1

Browse files
Shang XiaoJinglinusw
authored andcommitted
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: Shang XiaoJing <[email protected]> Acked-by: Florian Fainelli <[email protected]> Acked-by: Ray Jui <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent 8ea8af6 commit 19fdcb1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/pinctrl/bcm/pinctrl-ns.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,8 @@ static int ns_pinctrl_probe(struct platform_device *pdev)
233233
res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
234234
"cru_gpio_control");
235235
ns_pinctrl->base = devm_ioremap_resource(dev, res);
236-
if (IS_ERR(ns_pinctrl->base)) {
237-
dev_err(dev, "Failed to map pinctrl regs\n");
236+
if (IS_ERR(ns_pinctrl->base))
238237
return PTR_ERR(ns_pinctrl->base);
239-
}
240238

241239
memcpy(pctldesc, &ns_pinctrl_desc, sizeof(*pctldesc));
242240

0 commit comments

Comments
 (0)