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

power: reset: at91-sama5d2_shdwc: Remove redundant error printing in at91_shdwc_probe()

When devm_ioremap_resource() fails, a clear enough error message will be
printed by its subfunction __devm_ioremap_resource(). The error
information contains the device name, failure cause, and possibly resource
information.

Therefore, remove the error printing here to simplify code and reduce the
binary size.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>

authored by

Zhen Lei and committed by
Sebastian Reichel
8ef9f687 ed3443fb

+1 -3
+1 -3
drivers/power/reset/at91-sama5d2_shdwc.c
··· 351 351 352 352 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 353 353 at91_shdwc->shdwc_base = devm_ioremap_resource(&pdev->dev, res); 354 - if (IS_ERR(at91_shdwc->shdwc_base)) { 355 - dev_err(&pdev->dev, "Could not map reset controller address\n"); 354 + if (IS_ERR(at91_shdwc->shdwc_base)) 356 355 return PTR_ERR(at91_shdwc->shdwc_base); 357 - } 358 356 359 357 match = of_match_node(at91_shdwc_of_match, pdev->dev.of_node); 360 358 at91_shdwc->rcfg = match->data;