Commit 452190cb authored by Linus Walleij's avatar Linus Walleij Committed by Wim Van Sebroeck

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: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent 4962516b
...@@ -76,8 +76,6 @@ static int irq; ...@@ -76,8 +76,6 @@ static int irq;
static void __iomem *virtbase; static void __iomem *virtbase;
static unsigned long coh901327_users; static unsigned long coh901327_users;
static unsigned long boot_status; static unsigned long boot_status;
static u16 wdogenablestore;
static u16 irqmaskstore;
static struct device *parent; static struct device *parent;
/* /*
...@@ -461,6 +459,10 @@ static int __init coh901327_probe(struct platform_device *pdev) ...@@ -461,6 +459,10 @@ static int __init coh901327_probe(struct platform_device *pdev)
} }
#ifdef CONFIG_PM #ifdef CONFIG_PM
static u16 wdogenablestore;
static u16 irqmaskstore;
static int coh901327_suspend(struct platform_device *pdev, pm_message_t state) static int coh901327_suspend(struct platform_device *pdev, pm_message_t state)
{ {
irqmaskstore = readw(virtbase + U300_WDOG_IMR) & 0x0001U; irqmaskstore = readw(virtbase + U300_WDOG_IMR) & 0x0001U;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment