arm: tegra: timer: Fix compiler warning
Scott Williams [Wed, 23 Nov 2011 20:48:07 +0000 (12:48 -0800)]
Fix compiler warning when PM_SLEEP and HOTPLUG_CPU are not configured.

Change-Id: I6e9e7aaf9c63752d0c33363b1cced75b4437d82d
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-on: http://git-master/r/66508
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Gerrit_Virtual_Submit

Rebase-Id: R5687b9e034e004907ba01263948bf839544adb1b

arch/arm/mach-tegra/timer-t3.c

index 98274fe..cc8d540 100644 (file)
@@ -184,6 +184,7 @@ fail:
        tegra_lp2_in_idle(false);
 }
 
+#if defined(CONFIG_PM_SLEEP) && defined(CONFIG_HOTPLUG_CPU)
 static void tegra3_unregister_wake_timer(unsigned int cpu)
 {
 #ifdef CONFIG_SMP
@@ -194,6 +195,7 @@ static void tegra3_unregister_wake_timer(unsigned int cpu)
        /* Dispose of this IRQ. */
        remove_irq(tegra_lp2wake_irq[cpu].irq, &tegra_lp2wake_irq[cpu]);
 }
+#endif
 
 void tegra3_lp2_set_trigger(unsigned long cycles)
 {