diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2010-09-27 08:45:02 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-10-04 06:43:43 -0400 |
commit | bc310dda41be6439364c8f3b9fe7c9d743d22b1c (patch) | |
tree | 86a8b4da3d9e81aad104b61023858813454b0f35 /kernel/irq/manage.c | |
parent | c5f756344c390f629243b4a28c2bd198fdfd7ee9 (diff) |
genirq: Provide compat handling for chip->disable()/shutdown()
Wrap the old chip functions disable() and shutdown() until the
migration is complete and the old chip functions are removed.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <20100927121842.532070631@linutronix.de>
Reviewed-by: H. Peter Anvin <hpa@zytor.com>
Reviewed-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/irq/manage.c')
-rw-r--r-- | kernel/irq/manage.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index b3986bce64ff..f3f36f6af9a1 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c | |||
@@ -223,7 +223,7 @@ void __disable_irq(struct irq_desc *desc, unsigned int irq, bool suspend) | |||
223 | 223 | ||
224 | if (!desc->depth++) { | 224 | if (!desc->depth++) { |
225 | desc->status |= IRQ_DISABLED; | 225 | desc->status |= IRQ_DISABLED; |
226 | desc->irq_data.chip->disable(irq); | 226 | desc->irq_data.chip->irq_disable(&desc->irq_data); |
227 | } | 227 | } |
228 | } | 228 | } |
229 | 229 | ||
@@ -919,10 +919,10 @@ static struct irqaction *__free_irq(unsigned int irq, void *dev_id) | |||
919 | /* If this was the last handler, shut down the IRQ line: */ | 919 | /* If this was the last handler, shut down the IRQ line: */ |
920 | if (!desc->action) { | 920 | if (!desc->action) { |
921 | desc->status |= IRQ_DISABLED; | 921 | desc->status |= IRQ_DISABLED; |
922 | if (desc->irq_data.chip->shutdown) | 922 | if (desc->irq_data.chip->irq_shutdown) |
923 | desc->irq_data.chip->shutdown(irq); | 923 | desc->irq_data.chip->irq_shutdown(&desc->irq_data); |
924 | else | 924 | else |
925 | desc->irq_data.chip->disable(irq); | 925 | desc->irq_data.chip->irq_disable(&desc->irq_data); |
926 | } | 926 | } |
927 | 927 | ||
928 | #ifdef CONFIG_SMP | 928 | #ifdef CONFIG_SMP |