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

thermal: amlogic: Omit superfluous error message in amlogic_thermal_probe()

The function devm_platform_ioremap_resource has already contains error
message, so remove the redundant dev_err here.

Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210222061105.6008-1-tangbin@cmss.chinamobile.com

authored by

Tang Bin and committed by
Daniel Lezcano
e042e95b a38fd874

+1 -3
+1 -3
drivers/thermal/amlogic_thermal.c
··· 254 254 platform_set_drvdata(pdev, pdata); 255 255 256 256 base = devm_platform_ioremap_resource(pdev, 0); 257 - if (IS_ERR(base)) { 258 - dev_err(dev, "failed to get io address\n"); 257 + if (IS_ERR(base)) 259 258 return PTR_ERR(base); 260 - } 261 259 262 260 pdata->regmap = devm_regmap_init_mmio(dev, base, 263 261 pdata->data->regmap_config);