830-v6.4-27-thermal-drivers-mediatek-lvts_thermal-Remove-redunda.patch 1.0 KB

12345678910111213141516171819202122232425262728
  1. From 885b9768ce2a66ed5d250822aed53d5114c895da Mon Sep 17 00:00:00 2001
  2. From: Yangtao Li <[email protected]>
  3. Date: Tue, 20 Jun 2023 17:07:31 +0800
  4. Subject: [PATCH 23/42] thermal/drivers/mediatek/lvts_thermal: Remove redundant
  5. msg in lvts_ctrl_start()
  6. The upper-layer devm_thermal_add_hwmon_sysfs() function can directly
  7. print error information.
  8. Signed-off-by: Yangtao Li <[email protected]>
  9. Signed-off-by: Daniel Lezcano <[email protected]>
  10. Link: https://lore.kernel.org/r/[email protected]
  11. ---
  12. drivers/thermal/mediatek/lvts_thermal.c | 3 +--
  13. 1 file changed, 1 insertion(+), 2 deletions(-)
  14. --- a/drivers/thermal/mediatek/lvts_thermal.c
  15. +++ b/drivers/thermal/mediatek/lvts_thermal.c
  16. @@ -998,8 +998,7 @@ static int lvts_ctrl_start(struct device
  17. return PTR_ERR(tz);
  18. }
  19. - if (devm_thermal_add_hwmon_sysfs(dev, tz))
  20. - dev_warn(dev, "zone %d: Failed to add hwmon sysfs attributes\n", dt_id);
  21. + devm_thermal_add_hwmon_sysfs(dev, tz);
  22. /*
  23. * The thermal zone pointer will be needed in the