diff options
author | Robert Morell <rmorell@nvidia.com> | 2011-05-19 09:31:45 -0700 |
---|---|---|
committer | Niket Sirsi <nsirsi@nvidia.com> | 2011-05-23 17:03:05 -0700 |
commit | d016dca9f18c1f7c3b03fe86d028a40c196cdf01 (patch) | |
tree | c368d2f14a3ffd788613acd18d0096ca0aae095f /arch/arm/mach-tegra/board-ventana-sensors.c | |
parent | dedd6a4d41c81333c54fd40b746d8189af2188c4 (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>
Diffstat (limited to 'arch/arm/mach-tegra/board-ventana-sensors.c')
-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 6bc3d7d38bcd..b7173ceccf50 100644 --- a/arch/arm/mach-tegra/board-ventana-sensors.c +++ b/arch/arm/mach-tegra/board-ventana-sensors.c @@ -38,6 +38,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 @@ -52,8 +53,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); |