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

power: reset: at91-poweroff: Remove redundant dev_err call in at91_poweroff_probe()

There is an error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundancy.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>

authored by

Ladislav Michl and committed by
Sebastian Reichel
ab088248 062836db

+1 -3
+1 -3
drivers/power/reset/at91-poweroff.c
··· 159 159 160 160 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 161 161 at91_shdwc_base = devm_ioremap_resource(&pdev->dev, res); 162 - if (IS_ERR(at91_shdwc_base)) { 163 - dev_err(&pdev->dev, "Could not map reset controller address\n"); 162 + if (IS_ERR(at91_shdwc_base)) 164 163 return PTR_ERR(at91_shdwc_base); 165 - } 166 164 167 165 sclk = devm_clk_get(&pdev->dev, NULL); 168 166 if (IS_ERR(sclk))