Skip to contentSkip to conversation

sh: Retrieve the wakeup flag from irq_data

PATCH New Thomas Gleixner 1 participant 1 message Mar 25, 2011 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 sh: Retrieve the wakeup flag from irq_data

---
 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;