From: Linus Walleij Date: Mon, 3 Oct 2011 08:52:58 +0000 (+0200) Subject: watchdog: move coh901327 state holders X-Git-Tag: upstream/snapshot3+hdmi~8489^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=452190cb0526e9cc11b0998a600411cb9c7cd684;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git watchdog: move coh901327 state holders The state holders used in the PM path of the drivers report as unused variables when compiling without CONFIG_PM so let's move them inside CONFIG_PM. Signed-off-by: Linus Walleij Signed-off-by: Wim Van Sebroeck --- diff --git a/drivers/watchdog/coh901327_wdt.c b/drivers/watchdog/coh901327_wdt.c index 03f449a..5b89f7d 100644 --- a/drivers/watchdog/coh901327_wdt.c +++ b/drivers/watchdog/coh901327_wdt.c @@ -76,8 +76,6 @@ static int irq; static void __iomem *virtbase; static unsigned long coh901327_users; static unsigned long boot_status; -static u16 wdogenablestore; -static u16 irqmaskstore; static struct device *parent; /* @@ -461,6 +459,10 @@ out: } #ifdef CONFIG_PM + +static u16 wdogenablestore; +static u16 irqmaskstore; + static int coh901327_suspend(struct platform_device *pdev, pm_message_t state) { irqmaskstore = readw(virtbase + U300_WDOG_IMR) & 0x0001U;