summaryrefslogtreecommitdiff
path: root/drivers/thermal/uniphier_thermal.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/thermal/uniphier_thermal.c')
-rw-r--r--drivers/thermal/uniphier_thermal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/uniphier_thermal.c b/drivers/thermal/uniphier_thermal.c
index 47801841b3f5..aef6119cc004 100644
--- a/drivers/thermal/uniphier_thermal.c
+++ b/drivers/thermal/uniphier_thermal.c
@@ -187,7 +187,7 @@ static void uniphier_tm_disable_sensor(struct uniphier_tm_dev *tdev)
static int uniphier_tm_get_temp(struct thermal_zone_device *tz, int *out_temp)
{
- struct uniphier_tm_dev *tdev = tz->devdata;
+ struct uniphier_tm_dev *tdev = thermal_zone_device_priv(tz);
struct regmap *map = tdev->regmap;
int ret;
u32 temp;