diff options
author | Preetham Chandru <pchandru@nvidia.com> | 2011-10-21 16:23:28 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2011-10-21 18:00:33 -0700 |
commit | 3fa5bf723cbf34482de6a1a8473f68bc69958a66 (patch) | |
tree | 961d2d98d9c44796572dbae6a5aa2003719e4df6 | |
parent | 7ebaaea25400d3708b6f3ac3585b61b65ab99a17 (diff) |
arm: tegra: cpu: fix compilation error
tegra_throttling_enable function was defined to NULL using a macro
if CONFIG_TEGRA_THERMAL_THROTTLE is not defined.
So replaced the macro definition with dummy inline function for
tegra_throttling_enable function.
Without this change we get "called object '0u' is not a function" error
during compilation.
Bug: 891055
Change-Id: Ibf1b6da5ed8d561801ab05e0dc188adf22d3ff25
Signed-off-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/59598
Reviewed-by: Krishna Monian <kmonian@nvidia.com>
Tested-by: Krishna Monian <kmonian@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
-rw-r--r-- | arch/arm/mach-tegra/cpu-tegra.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/cpu-tegra.h b/arch/arm/mach-tegra/cpu-tegra.h index 9a1c05d27ff6..a89ccd32d463 100644 --- a/arch/arm/mach-tegra/cpu-tegra.h +++ b/arch/arm/mach-tegra/cpu-tegra.h @@ -48,7 +48,8 @@ static inline unsigned int tegra_throttle_governor_speed( static inline int tegra_throttle_debug_init( struct dentry *cpu_tegra_debugfs_root) { return 0; } -#define tegra_throttling_enable NULL +static inline void tegra_throttling_enable(bool enable) +{} #endif /* CONFIG_TEGRA_THERMAL_THROTTLE */ #if defined(CONFIG_TEGRA_AUTO_HOTPLUG) && !defined(CONFIG_ARCH_TEGRA_2x_SOC) |