diff options
author | Robert Morell <rmorell@nvidia.com> | 2011-05-19 09:31:45 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:46:17 -0800 |
commit | cbde5b2aedd4697ba144bf93ce0ac6734f823350 (patch) | |
tree | 65b55a2c1259b2a0c1b05125a6a450cffc8f73e8 /arch | |
parent | c3da19c93b2a92cc1a5422ae75302869e32dbefe (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
Original-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: R9c90fa22cc86b7be95484ad66fb3d0e3ff882b0c
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-tegra/board-ventana-sensors.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/board-ventana-sensors.c b/arch/arm/mach-tegra/board-ventana-sensors.c index d968c80cc17c..e3fc8e2e3a8c 100644 --- a/arch/arm/mach-tegra/board-ventana-sensors.c +++ b/arch/arm/mach-tegra/board-ventana-sensors.c @@ -37,6 +37,7 @@ #include "gpio-names.h" #include "board.h" #include "board-ventana.h" +#include "cpu-tegra.h" #define ISL29018_IRQ_GPIO TEGRA_GPIO_PZ2 #define AKM8975_IRQ_GPIO TEGRA_GPIO_PN5 @@ -51,8 +52,6 @@ #define CAMERA_FLASH_MAX_TORCH_AMP 11 #define CAMERA_FLASH_MAX_FLASH_AMP 31 -extern void tegra_throttling_enable(bool enable); - static int ventana_camera_init(void) { tegra_gpio_enable(CAMERA_POWER_GPIO); |