diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-03-24 07:33:40 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-03-29 08:47:57 -0400 |
commit | cf0d6b76c11b565f8d8b7d527d17b9f82eb3b3a5 (patch) | |
tree | cd27473441d7a5b00b22ee950509e52296de14ab /arch/arm | |
parent | fdea77b88ea19525cce3b850f9183286b8a554e0 (diff) |
arm: dove: Use proper irq accessor functions
Remove the obsolete desc_handle_irq() helper.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/include/asm/hw_irq.h | 8 | ||||
-rw-r--r-- | arch/arm/mach-dove/irq.c | 5 |
2 files changed, 2 insertions, 11 deletions
diff --git a/arch/arm/include/asm/hw_irq.h b/arch/arm/include/asm/hw_irq.h index 5586b7c8ef6f..a71b417b1856 100644 --- a/arch/arm/include/asm/hw_irq.h +++ b/arch/arm/include/asm/hw_irq.h | |||
@@ -10,14 +10,6 @@ static inline void ack_bad_irq(int irq) | |||
10 | irq_err_count++; | 10 | irq_err_count++; |
11 | } | 11 | } |
12 | 12 | ||
13 | /* | ||
14 | * Obsolete inline function for calling irq descriptor handlers. | ||
15 | */ | ||
16 | static inline void desc_handle_irq(unsigned int irq, struct irq_desc *desc) | ||
17 | { | ||
18 | desc->handle_irq(irq, desc); | ||
19 | } | ||
20 | |||
21 | void set_irq_flags(unsigned int irq, unsigned int flags); | 13 | void set_irq_flags(unsigned int irq, unsigned int flags); |
22 | 14 | ||
23 | #define IRQF_VALID (1 << 0) | 15 | #define IRQF_VALID (1 << 0) |
diff --git a/arch/arm/mach-dove/irq.c b/arch/arm/mach-dove/irq.c index 101707fa2e2c..aac6e23763e0 100644 --- a/arch/arm/mach-dove/irq.c +++ b/arch/arm/mach-dove/irq.c | |||
@@ -86,8 +86,7 @@ static void pmu_irq_handler(unsigned int irq, struct irq_desc *desc) | |||
86 | if (!(cause & (1 << irq))) | 86 | if (!(cause & (1 << irq))) |
87 | continue; | 87 | continue; |
88 | irq = pmu_to_irq(irq); | 88 | irq = pmu_to_irq(irq); |
89 | desc = irq_desc + irq; | 89 | generic_handle_irq(irq); |
90 | desc_handle_irq(irq, desc); | ||
91 | } | 90 | } |
92 | } | 91 | } |
93 | 92 | ||
@@ -124,7 +123,7 @@ void __init dove_init_irq(void) | |||
124 | for (i = IRQ_DOVE_PMU_START; i < NR_IRQS; i++) { | 123 | for (i = IRQ_DOVE_PMU_START; i < NR_IRQS; i++) { |
125 | set_irq_chip(i, &pmu_irq_chip); | 124 | set_irq_chip(i, &pmu_irq_chip); |
126 | set_irq_handler(i, handle_level_irq); | 125 | set_irq_handler(i, handle_level_irq); |
127 | irq_desc[i].status |= IRQ_LEVEL; | 126 | irq_set_status_flags(i, IRQ_LEVEL); |
128 | set_irq_flags(i, IRQF_VALID); | 127 | set_irq_flags(i, IRQF_VALID); |
129 | } | 128 | } |
130 | set_irq_chained_handler(IRQ_DOVE_PMU, pmu_irq_handler); | 129 | set_irq_chained_handler(IRQ_DOVE_PMU, pmu_irq_handler); |