Skip to content

Commit c32719a

Browse files
bbkzzdlezcano
authored andcommitted
thermal/drivers/amlogic: Remove redundant msg in amlogic_thermal_probe()
The upper-layer devm_thermal_add_hwmon_sysfs() function can directly print error information. Signed-off-by: Yangtao Li <[email protected]> Reviewed-by: Martin Blumenstingl <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 07130d1 commit c32719a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/thermal/amlogic_thermal.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,7 @@ static int amlogic_thermal_probe(struct platform_device *pdev)
282282
return ret;
283283
}
284284

285-
if (devm_thermal_add_hwmon_sysfs(&pdev->dev, pdata->tzd))
286-
dev_warn(&pdev->dev, "Failed to add hwmon sysfs attributes\n");
285+
devm_thermal_add_hwmon_sysfs(&pdev->dev, pdata->tzd);
287286

288287
ret = amlogic_thermal_initialize(pdata);
289288
if (ret)

0 commit comments

Comments
 (0)