Skip to contentSkip to conversation

move coh901327 state holders

PATCH New Linus Walleij 3 participants 3 messages Oct 3, 2011 – Dec 5, 2011 Watchdog device drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 move coh901327 state holders

From: Linus Walleij <[email protected]>

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.

---
 drivers/watchdog/coh901327_wdt.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
drivers/watchdog/coh901327_wdt.c +4 -2
index 9291506..20b2fb9 100644
@@ -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;
Signature · 1 line
1.7.3.2
#1 lore raw

PATCH 1/1 move coh901327 state holders

Quoted 7 lines · Linus Walleij

From: Linus Walleij <[email protected]>

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.

Ping on this, Wim is this patch OK?

Yours,
Linus Walleij

#2 lore raw

PATCH 1/1 move coh901327 state holders

Hi Linus,

Quoted 9 lines
Quoted 7 lines

From: Linus Walleij <[email protected]>

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.

Ping on this, Wim is this patch OK?

Patch is OK and has been added to the linux-next branch of the watchdog tree.

Kind regards,
Wim.