diff options
author | Preetham Chandru <pchandru@nvidia.com> | 2011-12-01 10:33:39 +0530 |
---|---|---|
committer | Varun Wadekar <vwadekar@nvidia.com> | 2011-12-08 17:05:41 +0530 |
commit | 8486d4780ef5e3fc1429dfd93ea3100300624d09 (patch) | |
tree | b99c3ed11bafb7879ea720e9d7aa57366322c658 /arch/arm/mach-tegra/cpu-tegra.h | |
parent | a5377726bfdb36424f99b853f7fe650ca86e3248 (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: Ie0cb83f0ed43ecf1f21f059dfdeddd56b60f4f0d
Signed-off-by: Preetham Chandru <pchandru@nvidia.com>
Reviewed-on: http://git-master/r/#change,64129,patchset=2
Reviewed-on: http://git-master/r/67595
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/cpu-tegra.h')
-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) |