summaryrefslogtreecommitdiff
path: root/kernel/irq/chip.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2010-09-27 16:45:53 +0400
committerThomas Gleixner <tglx@linutronix.de>2010-10-04 14:43:50 +0400
commit21e2b8c62cca8f7dbec0c8c131ca1637e4a5670f (patch)
tree8810be220dc49cf78c055ba960b1083cd1459a21 /kernel/irq/chip.c
parent2f7e99bb9be6a2d8d7b808dc86037710cc8b7bf1 (diff)
downloadlinux-21e2b8c62cca8f7dbec0c8c131ca1637e4a5670f.tar.xz
genirq: Provide compat handling for chip->retrigger()
Wrap the old chip function retrigger() 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: <20100927121843.025801092@linutronix.de> Reviewed-by: H. Peter Anvin <hpa@zytor.com> Reviewed-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/irq/chip.c')
-rw-r--r--kernel/irq/chip.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c
index 8775dd39ab3d..f2c4d28c508a 100644
--- a/kernel/irq/chip.c
+++ b/kernel/irq/chip.c
@@ -386,6 +386,11 @@ static int compat_irq_set_wake(struct irq_data *data, unsigned int on)
return data->chip->set_wake(data->irq, on);
}
+static int compat_irq_retrigger(struct irq_data *data)
+{
+ return data->chip->retrigger(data->irq);
+}
+
static void compat_bus_lock(struct irq_data *data)
{
data->chip->bus_lock(data->irq);
@@ -458,6 +463,8 @@ void irq_chip_set_defaults(struct irq_chip *chip)
chip->irq_set_type = compat_irq_set_type;
if (chip->set_wake)
chip->irq_set_wake = compat_irq_set_wake;
+ if (chip->retrigger)
+ chip->irq_retrigger = compat_irq_retrigger;
}
static inline void mask_ack_irq(struct irq_desc *desc)