Skip to content

Commit b0526e0

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

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

drivers/thermal/imx8mm_thermal.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,7 @@ static int imx8mm_tmu_probe(struct platform_device *pdev)
343343
}
344344
tmu->sensors[i].hw_id = i;
345345

346-
if (devm_thermal_add_hwmon_sysfs(&pdev->dev, tmu->sensors[i].tzd))
347-
dev_warn(&pdev->dev, "failed to add hwmon sysfs attributes\n");
346+
devm_thermal_add_hwmon_sysfs(&pdev->dev, tmu->sensors[i].tzd);
348347
}
349348

350349
platform_set_drvdata(pdev, tmu);

drivers/thermal/imx_sc_thermal.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@ static int imx_sc_thermal_probe(struct platform_device *pdev)
116116
return ret;
117117
}
118118

119-
if (devm_thermal_add_hwmon_sysfs(&pdev->dev, sensor->tzd))
120-
dev_warn(&pdev->dev, "failed to add hwmon sysfs attributes\n");
119+
devm_thermal_add_hwmon_sysfs(&pdev->dev, sensor->tzd);
121120
}
122121

123122
return 0;

0 commit comments

Comments
 (0)