diff mbox series

[v5,11/18] thermal/drivers/spear: Don't use tz->device but pdev->dev

Message ID 20230301201446.3713334-12-daniel.lezcano@linaro.org
State Accepted
Commit 25e43976b215b7634224afe9bc21270f4222aa4f
Headers show
Series [v5,01/18] thermal/core: Add a thermal zone 'devdata' accessor | expand

Commit Message

Daniel Lezcano March 1, 2023, 8:14 p.m. UTC
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>
---
 drivers/thermal/spear_thermal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/thermal/spear_thermal.c b/drivers/thermal/spear_thermal.c
index 653439b965c8..6e78616a576e 100644
--- a/drivers/thermal/spear_thermal.c
+++ b/drivers/thermal/spear_thermal.c
@@ -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;