aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thermal
diff options
context:
space:
mode:
authorRuiqi Gong <gongruiqi1@huawei.com>2021-04-08 06:03:29 -0400
committerDaniel Lezcano <daniel.lezcano@linaro.org>2021-04-20 08:58:47 +0200
commitd1ab7c3a33d27e7b63fd6207d88852561072ae36 (patch)
tree1f0b9d8cac1d6df369b90db554b9f525927891be /drivers/thermal
parentthermal/drivers/thermal_mmio: Remove redundant dev_err call in thermal_mmio_probe() (diff)
downloadlinux-dev-d1ab7c3a33d27e7b63fd6207d88852561072ae36.tar.xz
linux-dev-d1ab7c3a33d27e7b63fd6207d88852561072ae36.zip
thermal/drivers/bcm2835: Remove redundant dev_err call in bcm2835_thermal_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> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20210408100329.7585-1-gongruiqi1@huawei.com
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/broadcom/bcm2835_thermal.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/thermal/broadcom/bcm2835_thermal.c b/drivers/thermal/broadcom/bcm2835_thermal.c
index 3199977f1e73..c8e4344d5a3d 100644
--- a/drivers/thermal/broadcom/bcm2835_thermal.c
+++ b/drivers/thermal/broadcom/bcm2835_thermal.c
@@ -184,7 +184,6 @@ static int bcm2835_thermal_probe(struct platform_device *pdev)
data->regs = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(data->regs)) {
err = PTR_ERR(data->regs);
- dev_err(&pdev->dev, "Could not get registers: %d\n", err);
return err;
}