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/twl4030-irq.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/twl4030-irq.c')
-rw-r--r-- | drivers/mfd/twl4030-irq.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/mfd/twl4030-irq.c b/drivers/mfd/twl4030-irq.c index 47e8de0f3366..8a7ee3139b86 100644 --- a/drivers/mfd/twl4030-irq.c +++ b/drivers/mfd/twl4030-irq.c | |||
@@ -454,7 +454,7 @@ static inline void activate_irq(int irq) | |||
454 | set_irq_flags(irq, IRQF_VALID); | 454 | set_irq_flags(irq, IRQF_VALID); |
455 | #else | 455 | #else |
456 | /* same effect on other architectures */ | 456 | /* same effect on other architectures */ |
457 | set_irq_noprobe(irq); | 457 | irq_set_noprobe(irq); |
458 | #endif | 458 | #endif |
459 | } | 459 | } |
460 | 460 | ||
@@ -650,7 +650,7 @@ static inline int sih_read_isr(const struct sih *sih) | |||
650 | */ | 650 | */ |
651 | static void handle_twl4030_sih(unsigned irq, struct irq_desc *desc) | 651 | static void handle_twl4030_sih(unsigned irq, struct irq_desc *desc) |
652 | { | 652 | { |
653 | struct sih_agent *agent = get_irq_data(irq); | 653 | struct sih_agent *agent = irq_get_handler_data(irq); |
654 | const struct sih *sih = agent->sih; | 654 | const struct sih *sih = agent->sih; |
655 | int isr; | 655 | int isr; |
656 | 656 | ||
@@ -724,9 +724,9 @@ int twl4030_sih_setup(int module) | |||
724 | for (i = 0; i < sih->bits; i++) { | 724 | for (i = 0; i < sih->bits; i++) { |
725 | irq = irq_base + i; | 725 | irq = irq_base + i; |
726 | 726 | ||
727 | set_irq_chip_and_handler(irq, &twl4030_sih_irq_chip, | 727 | irq_set_chip_and_handler(irq, &twl4030_sih_irq_chip, |
728 | handle_edge_irq); | 728 | handle_edge_irq); |
729 | set_irq_chip_data(irq, agent); | 729 | irq_set_chip_data(irq, agent); |
730 | activate_irq(irq); | 730 | activate_irq(irq); |
731 | } | 731 | } |
732 | 732 | ||
@@ -735,8 +735,8 @@ int twl4030_sih_setup(int module) | |||
735 | 735 | ||
736 | /* replace generic PIH handler (handle_simple_irq) */ | 736 | /* replace generic PIH handler (handle_simple_irq) */ |
737 | irq = sih_mod + twl4030_irq_base; | 737 | irq = sih_mod + twl4030_irq_base; |
738 | set_irq_data(irq, agent); | 738 | irq_set_handler_data(irq, agent); |
739 | set_irq_chained_handler(irq, handle_twl4030_sih); | 739 | irq_set_chained_handler(irq, handle_twl4030_sih); |
740 | 740 | ||
741 | pr_info("twl4030: %s (irq %d) chaining IRQs %d..%d\n", sih->name, | 741 | pr_info("twl4030: %s (irq %d) chaining IRQs %d..%d\n", sih->name, |
742 | irq, irq_base, twl4030_irq_next - 1); | 742 | irq, irq_base, twl4030_irq_next - 1); |
@@ -785,8 +785,8 @@ int twl4030_init_irq(int irq_num, unsigned irq_base, unsigned irq_end) | |||
785 | twl4030_sih_irq_chip.irq_ack = dummy_irq_chip.irq_ack; | 785 | twl4030_sih_irq_chip.irq_ack = dummy_irq_chip.irq_ack; |
786 | 786 | ||
787 | for (i = irq_base; i < irq_end; i++) { | 787 | for (i = irq_base; i < irq_end; i++) { |
788 | set_irq_chip_and_handler(i, &twl4030_irq_chip, | 788 | irq_set_chip_and_handler(i, &twl4030_irq_chip, |
789 | handle_simple_irq); | 789 | handle_simple_irq); |
790 | activate_irq(i); | 790 | activate_irq(i); |
791 | } | 791 | } |
792 | twl4030_irq_next = i; | 792 | twl4030_irq_next = i; |
@@ -826,7 +826,7 @@ fail_rqirq: | |||
826 | /* clean up twl4030_sih_setup */ | 826 | /* clean up twl4030_sih_setup */ |
827 | fail: | 827 | fail: |
828 | for (i = irq_base; i < irq_end; i++) | 828 | for (i = irq_base; i < irq_end; i++) |
829 | set_irq_chip_and_handler(i, NULL, NULL); | 829 | irq_set_chip_and_handler(i, NULL, NULL); |
830 | destroy_workqueue(wq); | 830 | destroy_workqueue(wq); |
831 | wq = NULL; | 831 | wq = NULL; |
832 | return status; | 832 | return status; |