提交 beaa4102 编写于 作者: Y Ye Bin 提交者: Daniel Lezcano

thermal/drivers/hisi: Remove redundant dev_err call in hisi_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: NHulk Robot <hulkci@huawei.com>
Signed-off-by: NYe Bin <yebin10@huawei.com>
Signed-off-by: NDaniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210409075224.2109503-1-yebin10@huawei.com
上级 2eb87d75
...@@ -572,10 +572,8 @@ static int hisi_thermal_probe(struct platform_device *pdev) ...@@ -572,10 +572,8 @@ static int hisi_thermal_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
data->regs = devm_ioremap_resource(dev, res); data->regs = devm_ioremap_resource(dev, res);
if (IS_ERR(data->regs)) { if (IS_ERR(data->regs))
dev_err(dev, "failed to get io address\n");
return PTR_ERR(data->regs); return PTR_ERR(data->regs);
}
ret = data->ops->probe(data); ret = data->ops->probe(data);
if (ret) if (ret)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册