File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -343,8 +343,7 @@ static int imx8mm_tmu_probe(struct platform_device *pdev)
343
343
}
344
344
tmu -> sensors [i ].hw_id = i ;
345
345
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 );
348
347
}
349
348
350
349
platform_set_drvdata (pdev , tmu );
Original file line number Diff line number Diff line change @@ -116,8 +116,7 @@ static int imx_sc_thermal_probe(struct platform_device *pdev)
116
116
return ret ;
117
117
}
118
118
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 );
121
120
}
122
121
123
122
return 0 ;
You can’t perform that action at this time.
0 commit comments