summaryrefslogtreecommitdiff
path: root/drivers/thermal/k3_bandgap.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/thermal/k3_bandgap.c')
-rw-r--r--drivers/thermal/k3_bandgap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/k3_bandgap.c b/drivers/thermal/k3_bandgap.c
index 22c9bcb899c3..b5cd2c85e0c3 100644
--- a/drivers/thermal/k3_bandgap.c
+++ b/drivers/thermal/k3_bandgap.c
@@ -141,7 +141,7 @@ static int k3_bgp_read_temp(struct k3_thermal_data *devdata,
static int k3_thermal_get_temp(struct thermal_zone_device *tz, int *temp)
{
- struct k3_thermal_data *data = tz->devdata;
+ struct k3_thermal_data *data = thermal_zone_device_priv(tz);
int ret = 0;
ret = k3_bgp_read_temp(data, temp);