From: Andrew Morton Date: Wed, 22 Mar 2006 07:20:27 +0000 (-0800) Subject: [PATCH] powerpc: via-pmu warning fix X-Git-Tag: v2.6.17-rc1~1117^2~3 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57ae595f6bf8bde42de199ff9fe68b873080fde2;p=linux-2.6 [PATCH] powerpc: via-pmu warning fix drivers/macintosh/via-pmu.c:164: warning: `sleep_in_progress' defined but not used Cc: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Paul Mackerras --- diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c index 8a8fffa339..4f5f3abc9c 100644 --- a/drivers/macintosh/via-pmu.c +++ b/drivers/macintosh/via-pmu.c @@ -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];