Skip to content

Commit

Permalink
thermal/drivers/spear: Don't use tz->device but pdev->dev
Browse files Browse the repository at this point in the history
Use the spear associated device instead of the thermal zone device
which belongs to the thermal framework internals.

Signed-off-by: Daniel Lezcano <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
dlezcano authored and rafaeljw committed Mar 3, 2023
1 parent 072e35c commit 25e4397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/thermal/spear_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 25e4397

Please sign in to comment.