aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thermal
diff options
context:
space:
mode:
authorTang Bin <tangbin@cmss.chinamobile.com>2021-02-22 14:11:05 +0800
committerDaniel Lezcano <daniel.lezcano@linaro.org>2021-03-10 12:52:55 +0100
commite042e95bcab34b2265b0aaeb497030ea13c6c251 (patch)
tree90478bc067c8aa49953c6787560704355550b1f2 /drivers/thermal
parentLinux 5.12-rc2 (diff)
downloadlinux-dev-e042e95bcab34b2265b0aaeb497030ea13c6c251.tar.xz
linux-dev-e042e95bcab34b2265b0aaeb497030ea13c6c251.zip
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
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/amlogic_thermal.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/thermal/amlogic_thermal.c b/drivers/thermal/amlogic_thermal.c
index dffe3ba8c7c4..e61b91d14ad1 100644
--- a/drivers/thermal/amlogic_thermal.c
+++ b/drivers/thermal/amlogic_thermal.c
@@ -254,10 +254,8 @@ static int amlogic_thermal_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, pdata);
base = devm_platform_ioremap_resource(pdev, 0);
- if (IS_ERR(base)) {
- dev_err(dev, "failed to get io address\n");
+ if (IS_ERR(base))
return PTR_ERR(base);
- }
pdata->regmap = devm_regmap_init_mmio(dev, base,
pdata->data->regmap_config);