diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2010-09-27 08:45:50 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-10-04 06:43:48 -0400 |
commit | 2f7e99bb9be6a2d8d7b808dc86037710cc8b7bf1 (patch) | |
tree | c620f5e8eb1a160bebb73a330fecd95a430977ed /kernel/irq/manage.c | |
parent | b2ba2c30033c10cca2454f8b44bf98f5249e61c6 (diff) |
genirq: Provide compat handling for chip->set_wake()
Wrap the old chip function set_wake() 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.927527393@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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index 3618362b3d8d..644e8d5fa367 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c | |||
@@ -337,8 +337,8 @@ static int set_irq_wake_real(unsigned int irq, unsigned int on) | |||
337 | struct irq_desc *desc = irq_to_desc(irq); | 337 | struct irq_desc *desc = irq_to_desc(irq); |
338 | int ret = -ENXIO; | 338 | int ret = -ENXIO; |
339 | 339 | ||
340 | if (desc->irq_data.chip->set_wake) | 340 | if (desc->irq_data.chip->irq_set_wake) |
341 | ret = desc->irq_data.chip->set_wake(irq, on); | 341 | ret = desc->irq_data.chip->irq_set_wake(&desc->irq_data, on); |
342 | 342 | ||
343 | return ret; | 343 | return ret; |
344 | } | 344 | } |