diff options
author | Preetham Chandru <pchandru@nvidia.com> | 2011-10-21 16:23:28 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2011-10-25 16:34:28 -0700 |
commit | c3161a85aa425fd1d775e712ba07d70df6db716f (patch) | |
tree | 7c78d0acb473b6cff9a82efb6bb0e6a48cf3628d | |
parent | 183f279210b797da859229ae83e81f25fdf2f86e (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
Reviewed-on: http://git-master/r/#change,59598
(cherry picked from commit 3fa5bf723cbf34482de6a1a8473f68bc69958a66)
Signed-off-by: Preetham Chandru <pchandru@nvidia.com>
Change-Id: I51f9ee8a99080c80cde40ef9864ff65392362e21
Reviewed-on: http://git-master/r/60260
Reviewed-by: Krishna Monian <kmonian@nvidia.com>
Tested-by: Krishna Monian <kmonian@nvidia.com>
Reviewed-by: Joshua Primero <jprimero@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) |