From 8486d4780ef5e3fc1429dfd93ea3100300624d09 Mon Sep 17 00:00:00 2001 From: Preetham Chandru Date: Thu, 1 Dec 2011 10:33:39 +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: Ie0cb83f0ed43ecf1f21f059dfdeddd56b60f4f0d Signed-off-by: Preetham Chandru Reviewed-on: http://git-master/r/#change,64129,patchset=2 Reviewed-on: http://git-master/r/67595 Reviewed-by: Diwakar Tundlam --- arch/arm/mach-tegra/cpu-tegra.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'arch/arm') 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