thermal/core: Use the thermal zone 'devdata' accessor in thermal located drivers
[linux-block.git] / drivers / thermal / broadcom / ns-thermal.c
index 07a8a3f49bd0f98c5bdede4bc12d85d25b823fcd..d255aa879fc0d109c64bc38e91545d9c9f2fc54b 100644 (file)
@@ -16,7 +16,7 @@
 
 static int ns_thermal_get_temp(struct thermal_zone_device *tz, int *temp)
 {
-       void __iomem *pvtmon = tz->devdata;
+       void __iomem *pvtmon = thermal_zone_device_priv(tz);
        int offset = thermal_zone_get_offset(tz);
        int slope = thermal_zone_get_slope(tz);
        u32 val;