move coh901327 state holders
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
@@ -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
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_PMso let's move them insideCONFIG_PM.Signed-off-by Linus Walleij <[email protected]>
Ping on this, Wim is this patch OK?
Yours,
Linus Walleij
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_PMso let's move them insideCONFIG_PM.Signed-off-by Linus Walleij <[email protected]>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.