diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-03-25 07:12:32 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-03-26 19:09:51 -0400 |
commit | d5bb122165981aed327845c32a9916d1b8ae0e4b (patch) | |
tree | 09b79a87b6727ce1e592371c84c68e14b11a21c5 /drivers/mfd/htc-egpio.c | |
parent | c22435a307e00b8ae947b79a8c0d94ab0bef404c (diff) |
mfd: Cleanup irq namespace
Converted with coccinelle.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/htc-egpio.c')
-rw-r--r-- | drivers/mfd/htc-egpio.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/mfd/htc-egpio.c b/drivers/mfd/htc-egpio.c index 0ca68860c0d0..fcd89e604ab1 100644 --- a/drivers/mfd/htc-egpio.c +++ b/drivers/mfd/htc-egpio.c | |||
@@ -344,14 +344,14 @@ static int __init egpio_probe(struct platform_device *pdev) | |||
344 | ei->ack_write = 0; | 344 | ei->ack_write = 0; |
345 | irq_end = ei->irq_start + ei->nirqs; | 345 | irq_end = ei->irq_start + ei->nirqs; |
346 | for (irq = ei->irq_start; irq < irq_end; irq++) { | 346 | for (irq = ei->irq_start; irq < irq_end; irq++) { |
347 | set_irq_chip(irq, &egpio_muxed_chip); | 347 | irq_set_chip(irq, &egpio_muxed_chip); |
348 | set_irq_chip_data(irq, ei); | 348 | irq_set_chip_data(irq, ei); |
349 | set_irq_handler(irq, handle_simple_irq); | 349 | irq_set_handler(irq, handle_simple_irq); |
350 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | 350 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); |
351 | } | 351 | } |
352 | set_irq_type(ei->chained_irq, IRQ_TYPE_EDGE_RISING); | 352 | irq_set_irq_type(ei->chained_irq, IRQ_TYPE_EDGE_RISING); |
353 | set_irq_data(ei->chained_irq, ei); | 353 | irq_set_handler_data(ei->chained_irq, ei); |
354 | set_irq_chained_handler(ei->chained_irq, egpio_handler); | 354 | irq_set_chained_handler(ei->chained_irq, egpio_handler); |
355 | ack_irqs(ei); | 355 | ack_irqs(ei); |
356 | 356 | ||
357 | device_init_wakeup(&pdev->dev, 1); | 357 | device_init_wakeup(&pdev->dev, 1); |
@@ -373,11 +373,11 @@ static int __exit egpio_remove(struct platform_device *pdev) | |||
373 | if (ei->chained_irq) { | 373 | if (ei->chained_irq) { |
374 | irq_end = ei->irq_start + ei->nirqs; | 374 | irq_end = ei->irq_start + ei->nirqs; |
375 | for (irq = ei->irq_start; irq < irq_end; irq++) { | 375 | for (irq = ei->irq_start; irq < irq_end; irq++) { |
376 | set_irq_chip(irq, NULL); | 376 | irq_set_chip(irq, NULL); |
377 | set_irq_handler(irq, NULL); | 377 | irq_set_handler(irq, NULL); |
378 | set_irq_flags(irq, 0); | 378 | set_irq_flags(irq, 0); |
379 | } | 379 | } |
380 | set_irq_chained_handler(ei->chained_irq, NULL); | 380 | irq_set_chained_handler(ei->chained_irq, NULL); |
381 | device_init_wakeup(&pdev->dev, 0); | 381 | device_init_wakeup(&pdev->dev, 0); |
382 | } | 382 | } |
383 | iounmap(ei->base_addr); | 383 | iounmap(ei->base_addr); |