* [patch 1/2] sh: Retrieve the wakeup flag from irq_data
@ 2011-03-25 13:56 Thomas Gleixner
0 siblings, 0 replies; only message in thread
From: Thomas Gleixner @ 2011-03-25 13:56 UTC (permalink / raw)
To: linux-sh
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
drivers/sh/intc/core.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Index: linux-2.6-tip/drivers/sh/intc/core.c
=================================--- linux-2.6-tip.orig/drivers/sh/intc/core.c
+++ linux-2.6-tip/drivers/sh/intc/core.c
@@ -427,13 +427,12 @@ static int intc_suspend(struct sys_devic
case PM_EVENT_SUSPEND:
/* enable wakeup irqs belonging to this intc controller */
for_each_active_irq(irq) {
- desc = irq_to_desc(irq);
data = irq_get_irq_data(irq);
chip = irq_data_get_irq_chip(data);
if (chip != &d->chip)
continue;
- if ((desc->status & IRQ_WAKEUP))
+ if (irqd_is_wakeup_set(data))
chip->irq_enable(data);
}
break;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-03-25 13:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-25 13:56 [patch 1/2] sh: Retrieve the wakeup flag from irq_data Thomas Gleixner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).