[PATCH] powerpc: via-pmu warning fix
authorAndrew Morton <akpm@osdl.org>
Wed, 22 Mar 2006 07:20:27 +0000 (23:20 -0800)
committerPaul Mackerras <paulus@samba.org>
Thu, 23 Mar 2006 03:40:43 +0000 (14:40 +1100)
drivers/macintosh/via-pmu.c:164: warning: `sleep_in_progress' defined but not used

Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
drivers/macintosh/via-pmu.c

index 8a8fffa..4f5f3ab 100644 (file)
@@ -161,7 +161,9 @@ static int drop_interrupts;
 #if defined(CONFIG_PM) && defined(CONFIG_PPC32)
 static int option_lid_wakeup = 1;
 #endif /* CONFIG_PM && CONFIG_PPC32 */
+#if (defined(CONFIG_PM)&&defined(CONFIG_PPC32))||defined(CONFIG_PMAC_BACKLIGHT)
 static int sleep_in_progress;
+#endif
 static unsigned long async_req_locks;
 static unsigned int pmu_irq_stats[11];