From d9c494fb3a62da94719343ad74139e291e45a0bb Mon Sep 17 00:00:00 2001 From: Robert Morell Date: Thu, 19 May 2011 09:31:45 -0700 Subject: arm: tegra: Declare tegra_throttling_enable in .h The build currently fails for some boards when CONFIG_CPU_FREQ=n, since we don't build cpu-tegra.c but tegra_throttling_enable is still referenced. To fix this: - Add cpu-tegra.h - Define tegra_throttling_enable to NULL in the header if either CONFIG_CPU_FREQ or CONFIG_TEGRA_THERMAL_THROTTLE are not set - Use the header file instead of declaring the function extern everywhere it's used Bug 829501 Change-Id: Ice84309546dee201f991a1194fefd80583afc455 Signed-off-by: Robert Morell Reviewed-on: http://git-master/r/32208 Reviewed-by: Allen R Martin Reviewed-by: Aleksandr Frid Reviewed-by: Diwakar Tundlam Reviewed-by: Varun Colbert Tested-by: Diwakar Tundlam Reviewed-by: Varun Wadekar Rebase-Id: Rb5c3398cf5682d6b5573f91b2faccca931059b45 --- arch/arm/mach-tegra/board-whistler-sensors.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'arch/arm/mach-tegra/board-whistler-sensors.c') diff --git a/arch/arm/mach-tegra/board-whistler-sensors.c b/arch/arm/mach-tegra/board-whistler-sensors.c index 6d8037f58759..853ac62391fc 100644 --- a/arch/arm/mach-tegra/board-whistler-sensors.c +++ b/arch/arm/mach-tegra/board-whistler-sensors.c @@ -29,6 +29,7 @@ #include #include "gpio-names.h" +#include "cpu-tegra.h" #define CAMERA1_PWDN_GPIO TEGRA_GPIO_PT2 #define CAMERA1_RESET_GPIO TEGRA_GPIO_PD2 @@ -42,8 +43,6 @@ #define ISL29018_IRQ_GPIO TEGRA_GPIO_PK2 #define ADT7461_IRQ_GPIO TEGRA_GPIO_PI2 -extern void tegra_throttling_enable(bool enable); - static struct regulator *reg_avdd_cam1; /* LDO9 */ static struct regulator *reg_vdd_af; /* LDO13 */ static struct regulator *reg_vdd_mipi; /* LDO17 */ -- cgit v1.2.3