diff options
-rw-r--r-- | drivers/sh/intc/core.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/sh/intc/core.c b/drivers/sh/intc/core.c index 338fad2a3fa4..873a99ff8f64 100644 --- a/drivers/sh/intc/core.c +++ b/drivers/sh/intc/core.c | |||
@@ -403,11 +403,8 @@ static int intc_suspend(struct sys_device *dev, pm_message_t state) | |||
403 | if (d->state.event != PM_EVENT_FREEZE) | 403 | if (d->state.event != PM_EVENT_FREEZE) |
404 | break; | 404 | break; |
405 | 405 | ||
406 | for_each_irq_nr(irq) { | 406 | for_each_active_irq(irq) { |
407 | desc = irq_to_desc(irq); | 407 | desc = irq_to_desc(irq); |
408 | if (!desc) | ||
409 | continue; | ||
410 | |||
411 | data = irq_get_irq_data(irq); | 408 | data = irq_get_irq_data(irq); |
412 | chip = irq_data_get_irq_chip(data); | 409 | chip = irq_data_get_irq_chip(data); |
413 | 410 | ||
@@ -428,11 +425,8 @@ static int intc_suspend(struct sys_device *dev, pm_message_t state) | |||
428 | break; | 425 | break; |
429 | case PM_EVENT_SUSPEND: | 426 | case PM_EVENT_SUSPEND: |
430 | /* enable wakeup irqs belonging to this intc controller */ | 427 | /* enable wakeup irqs belonging to this intc controller */ |
431 | for_each_irq_nr(irq) { | 428 | for_each_active_irq(irq) { |
432 | desc = irq_to_desc(irq); | 429 | desc = irq_to_desc(irq); |
433 | if (!desc) | ||
434 | continue; | ||
435 | |||
436 | data = irq_get_irq_data(irq); | 430 | data = irq_get_irq_data(irq); |
437 | chip = irq_data_get_irq_chip(data); | 431 | chip = irq_data_get_irq_chip(data); |
438 | 432 | ||