From 3fa5bf723cbf34482de6a1a8473f68bc69958a66 Mon Sep 17 00:00:00 2001 From: Preetham Chandru Date: Fri, 21 Oct 2011 16:23:28 +0530 Subject: 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 Reviewed-on: http://git-master/r/59598 Reviewed-by: Krishna Monian Tested-by: Krishna Monian Reviewed-by: Diwakar Tundlam --- arch/arm/mach-tegra/cpu-tegra.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3