Fix build when CONFIG_THERMAL is disabled.
Change-Id: Iad4ebb036b7a2b6407b0ebe07c096200e275471e
Signed-off-by: Jeff Smith <jsmith@nvidia.com>
Reviewed-on: http://git-master/r/166024
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
__raw_readl((u32)reg_soctherm_base + (reg))
static struct soctherm_platform_data plat_data;
+#ifdef CONFIG_THERMAL
static struct thermal_zone_device *thz[THERM_SIZE];
+#endif
static struct workqueue_struct *workqueue;
static struct work_struct work;
return (abs * 1000 + lsb * 500) * (sign * -2 + 1);
}
+#ifdef CONFIG_THERMAL
static int soctherm_set_limits(enum soctherm_therm_id therm,
long lo_limit, long hi_limit)
{
return 0;
}
-#ifdef CONFIG_THERMAL
static void soctherm_update(void)
{
struct thermal_zone_device *dev = thz[THERM_CPU];