ARM: tegra: soctherm: Update bind function
Joshua Primero [Tue, 23 Oct 2012 01:11:34 +0000 (18:11 -0700)]
Updated bind function to reflect new Thermal API.

bug 1059470

Change-Id: I77bff7ac080d663018a938ccd2fa887884ab84a5
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/159964
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

arch/arm/mach-tegra/tegra11_soctherm.c

index ab4e90f..b8e0b51 100644 (file)
@@ -347,7 +347,9 @@ static int soctherm_bind(struct thermal_zone_device *thz,
                return 0;
 
        if (plat_data.therm[index].cdev == cdevice)
-               return thermal_zone_bind_cooling_device(thz, 0, cdevice);
+               return thermal_zone_bind_cooling_device(thz, 0, cdevice,
+                                                       THERMAL_NO_LIMIT,
+                                                       THERMAL_NO_LIMIT);
 
        return 0;
 }