summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuiqi Gong <gongruiqi1@huawei.com>2021-04-08 13:01:44 +0300
committerDaniel Lezcano <daniel.lezcano@linaro.org>2021-04-20 09:58:47 +0300
commit8cd7ab2a1a393f37f2e2f4b3ff595d98c245b854 (patch)
treeb415aa0803da8c27ca3537f63fac559703c51c9f
parenta2149ab815fce21d0d83082818116519e44f87be (diff)
downloadlinux-8cd7ab2a1a393f37f2e2f4b3ff595d98c245b854.tar.xz
thermal/drivers/thermal_mmio: Remove redundant dev_err call in thermal_mmio_probe()
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Ruiqi Gong <gongruiqi1@huawei.com> Acked-by: Talel Shenhar <talel@amazon.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20210408100144.7494-1-gongruiqi1@huawei.com
-rw-r--r--drivers/thermal/thermal_mmio.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/thermal/thermal_mmio.c b/drivers/thermal/thermal_mmio.c
index d0bdf1ea3331..ded1dd0d4ef7 100644
--- a/drivers/thermal/thermal_mmio.c
+++ b/drivers/thermal/thermal_mmio.c
@@ -54,11 +54,8 @@ static int thermal_mmio_probe(struct platform_device *pdev)
resource = platform_get_resource(pdev, IORESOURCE_MEM, 0);
sensor->mmio_base = devm_ioremap_resource(&pdev->dev, resource);
- if (IS_ERR(sensor->mmio_base)) {
- dev_err(&pdev->dev, "failed to ioremap memory (%ld)\n",
- PTR_ERR(sensor->mmio_base));
+ if (IS_ERR(sensor->mmio_base))
return PTR_ERR(sensor->mmio_base);
- }
sensor_init_func = device_get_match_data(&pdev->dev);
if (sensor_init_func) {