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/tc6393xb.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/tc6393xb.c')
-rw-r--r-- | drivers/mfd/tc6393xb.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/mfd/tc6393xb.c b/drivers/mfd/tc6393xb.c index 3d62ded86a8f..06112c8628bf 100644 --- a/drivers/mfd/tc6393xb.c +++ b/drivers/mfd/tc6393xb.c | |||
@@ -513,7 +513,7 @@ static int tc6393xb_register_gpio(struct tc6393xb *tc6393xb, int gpio_base) | |||
513 | static void | 513 | static void |
514 | tc6393xb_irq(unsigned int irq, struct irq_desc *desc) | 514 | tc6393xb_irq(unsigned int irq, struct irq_desc *desc) |
515 | { | 515 | { |
516 | struct tc6393xb *tc6393xb = get_irq_data(irq); | 516 | struct tc6393xb *tc6393xb = irq_get_handler_data(irq); |
517 | unsigned int isr; | 517 | unsigned int isr; |
518 | unsigned int i, irq_base; | 518 | unsigned int i, irq_base; |
519 | 519 | ||
@@ -572,15 +572,15 @@ static void tc6393xb_attach_irq(struct platform_device *dev) | |||
572 | irq_base = tc6393xb->irq_base; | 572 | irq_base = tc6393xb->irq_base; |
573 | 573 | ||
574 | for (irq = irq_base; irq < irq_base + TC6393XB_NR_IRQS; irq++) { | 574 | for (irq = irq_base; irq < irq_base + TC6393XB_NR_IRQS; irq++) { |
575 | set_irq_chip(irq, &tc6393xb_chip); | 575 | irq_set_chip(irq, &tc6393xb_chip); |
576 | set_irq_chip_data(irq, tc6393xb); | 576 | irq_set_chip_data(irq, tc6393xb); |
577 | set_irq_handler(irq, handle_edge_irq); | 577 | irq_set_handler(irq, handle_edge_irq); |
578 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | 578 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); |
579 | } | 579 | } |
580 | 580 | ||
581 | set_irq_type(tc6393xb->irq, IRQ_TYPE_EDGE_FALLING); | 581 | irq_set_irq_type(tc6393xb->irq, IRQ_TYPE_EDGE_FALLING); |
582 | set_irq_data(tc6393xb->irq, tc6393xb); | 582 | irq_set_handler_data(tc6393xb->irq, tc6393xb); |
583 | set_irq_chained_handler(tc6393xb->irq, tc6393xb_irq); | 583 | irq_set_chained_handler(tc6393xb->irq, tc6393xb_irq); |
584 | } | 584 | } |
585 | 585 | ||
586 | static void tc6393xb_detach_irq(struct platform_device *dev) | 586 | static void tc6393xb_detach_irq(struct platform_device *dev) |
@@ -588,15 +588,15 @@ static void tc6393xb_detach_irq(struct platform_device *dev) | |||
588 | struct tc6393xb *tc6393xb = platform_get_drvdata(dev); | 588 | struct tc6393xb *tc6393xb = platform_get_drvdata(dev); |
589 | unsigned int irq, irq_base; | 589 | unsigned int irq, irq_base; |
590 | 590 | ||
591 | set_irq_chained_handler(tc6393xb->irq, NULL); | 591 | irq_set_chained_handler(tc6393xb->irq, NULL); |
592 | set_irq_data(tc6393xb->irq, NULL); | 592 | irq_set_handler_data(tc6393xb->irq, NULL); |
593 | 593 | ||
594 | irq_base = tc6393xb->irq_base; | 594 | irq_base = tc6393xb->irq_base; |
595 | 595 | ||
596 | for (irq = irq_base; irq < irq_base + TC6393XB_NR_IRQS; irq++) { | 596 | for (irq = irq_base; irq < irq_base + TC6393XB_NR_IRQS; irq++) { |
597 | set_irq_flags(irq, 0); | 597 | set_irq_flags(irq, 0); |
598 | set_irq_chip(irq, NULL); | 598 | irq_set_chip(irq, NULL); |
599 | set_irq_chip_data(irq, NULL); | 599 | irq_set_chip_data(irq, NULL); |
600 | } | 600 | } |
601 | } | 601 | } |
602 | 602 | ||