Skip to content

Commit 7c673ef

Browse files
bbkzzdlezcano
authored andcommitted
drivers/thermal/k3: Remove redundant msg in k3_bandgap_probe()
The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li <frank.li@vivo.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20230620090732.50025-5-frank.li@vivo.com
1 parent b0526e0 commit 7c673ef

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/thermal/k3_bandgap.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,7 @@ static int k3_bandgap_probe(struct platform_device *pdev)
222222
goto err_alloc;
223223
}
224224

225-
if (devm_thermal_add_hwmon_sysfs(dev, data[id].tzd))
226-
dev_warn(dev, "Failed to add hwmon sysfs attributes\n");
225+
devm_thermal_add_hwmon_sysfs(dev, data[id].tzd);
227226
}
228227

229228
platform_set_drvdata(pdev, bgp);

0 commit comments

Comments
 (0)