thermal/drivers/spear: Don't use tz->device but pdev->dev
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 1 Mar 2023 20:14:39 +0000 (21:14 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 3 Mar 2023 19:45:02 +0000 (20:45 +0100)
Use the spear associated device instead of the thermal zone device
which belongs to the thermal framework internals.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/spear_thermal.c

index 653439b965c8725eae960593e3cde05b39a7cf0a..6e78616a576ead65b1044e438b2f3b359da57cb2 100644 (file)
@@ -137,7 +137,7 @@ static int spear_thermal_probe(struct platform_device *pdev)
 
        platform_set_drvdata(pdev, spear_thermal);
 
-       dev_info(&spear_thermal->device, "Thermal Sensor Loaded at: 0x%p.\n",
+       dev_info(&pdev->dev, "Thermal Sensor Loaded at: 0x%p.\n",
                        stdev->thermal_base);
 
        return 0;