Message ID | 20110325135542.970002118@linutronix.de (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
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;