summaryrefslogtreecommitdiffstats
path: root/drivers/sh
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-03-24 14:47:46 +0100
committerThomas Gleixner <tglx@linutronix.de>2011-03-29 14:48:13 +0200
commita821b2793ea958038687c481c1ea7f74c8fcccfd (patch)
treece6855fe71c2087b93ad4043ff1970c4199bdc1e /drivers/sh
parent433c9c67c53cc42b2824532d3abb7ac62970d3fb (diff)
downloadop-kernel-dev-a821b2793ea958038687c481c1ea7f74c8fcccfd.zip
op-kernel-dev-a821b2793ea958038687c481c1ea7f74c8fcccfd.tar.gz
sh: Use the proper accessor functions
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/sh')
-rw-r--r--drivers/sh/intc/core.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/sh/intc/core.c b/drivers/sh/intc/core.c
index 5833afb..2578db5 100644
--- a/drivers/sh/intc/core.c
+++ b/drivers/sh/intc/core.c
@@ -387,19 +387,16 @@ static int intc_suspend(void)
/* enable wakeup irqs belonging to this intc controller */
for_each_active_irq(irq) {
struct irq_data *data;
- struct irq_desc *desc;
struct irq_chip *chip;
data = irq_get_irq_data(irq);
chip = irq_data_get_irq_chip(data);
if (chip != &d->chip)
continue;
- desc = irq_to_desc(irq);
- if ((desc->status & IRQ_WAKEUP))
+ if (irqd_is_wakeup_set(data))
chip->irq_enable(data);
}
}
-
return 0;
}
@@ -412,7 +409,6 @@ static void intc_resume(void)
for_each_active_irq(irq) {
struct irq_data *data;
- struct irq_desc *desc;
struct irq_chip *chip;
data = irq_get_irq_data(irq);
@@ -423,8 +419,7 @@ static void intc_resume(void)
*/
if (chip != &d->chip)
continue;
- desc = irq_to_desc(irq);
- if (desc->status & IRQ_DISABLED)
+ if (irqd_irq_disabled(data))
chip->irq_disable(data);
else
chip->irq_enable(data);
OpenPOWER on IntegriCloud