aboutsummaryrefslogtreecommitdiff
path: root/drivers/thermal/broadcom/bcm2711_thermal.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/thermal/broadcom/bcm2711_thermal.c')
-rw-r--r--drivers/thermal/broadcom/bcm2711_thermal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/broadcom/bcm2711_thermal.c b/drivers/thermal/broadcom/bcm2711_thermal.c
index 1f8651d15160..fcfcbbf044a4 100644
--- a/drivers/thermal/broadcom/bcm2711_thermal.c
+++ b/drivers/thermal/broadcom/bcm2711_thermal.c
@@ -33,7 +33,7 @@ struct bcm2711_thermal_priv {
static int bcm2711_get_temp(struct thermal_zone_device *tz, int *temp)
{
- struct bcm2711_thermal_priv *priv = tz->devdata;
+ struct bcm2711_thermal_priv *priv = thermal_zone_device_priv(tz);
int slope = thermal_zone_get_slope(tz);
int offset = thermal_zone_get_offset(tz);
u32 val;