summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-whistler-sensors.c
diff options
context:
space:
mode:
authorRobert Morell <rmorell@nvidia.com>2011-05-19 09:31:45 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:46:28 -0800
commitd9c494fb3a62da94719343ad74139e291e45a0bb (patch)
tree69be605ed239125534373a97a790a7f9e40d156e /arch/arm/mach-tegra/board-whistler-sensors.c
parent7843718fccd9cd6f61999f90557e96bfcb8c3ae1 (diff)
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 <rmorell@nvidia.com> Reviewed-on: http://git-master/r/32208 Reviewed-by: Allen R Martin <amartin@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com> Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Diwakar Tundlam <dtundlam@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Rebase-Id: Rb5c3398cf5682d6b5573f91b2faccca931059b45
Diffstat (limited to 'arch/arm/mach-tegra/board-whistler-sensors.c')
-rw-r--r--arch/arm/mach-tegra/board-whistler-sensors.c3
1 files changed, 1 insertions, 2 deletions
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 <generated/mach-types.h>
#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 */