thermal: thermal_hwmon: Revert recent message adjustment
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 29 Mar 2023 17:44:21 +0000 (19:44 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 29 Mar 2023 18:40:10 +0000 (20:40 +0200)
For the sake of consistency, revert the second part of the
thermal_hwmon.c hunk from commit dec07d399cc8 ("thermal: Don't use
'device' internal thermal zone structure field") after the first
part of it has been reverted.

Link: https://lore.kernel.org/linux-pm/5b084360-898b-aad0-0b8e-33acc585d71d@linaro.org
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/thermal_hwmon.c

index 261743f461bedfb167177de345be758de5f274f2..fbe55509e3071134493a09b477cb0bf2cf37eda6 100644 (file)
@@ -236,7 +236,7 @@ void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz)
        temp = thermal_hwmon_lookup_temp(hwmon, tz);
        if (unlikely(!temp)) {
                /* Should never happen... */
-               dev_dbg(hwmon->device, "temperature input lookup failed!\n");
+               dev_dbg(&tz->device, "temperature input lookup failed!\n");
                return;
        }