diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2011-04-13 16:31:28 -0400 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2011-11-08 16:35:47 -0500 |
commit | c288bf2533e57174b90b07860c4391bcd1ea269c (patch) | |
tree | 91fa6ef91d6653f491f41ff97c4da5e28dfd62fe /arch/m68k/mac/macints.c | |
parent | 3ec7215e5d1a714ef65069a1d0999a31e4930bb7 (diff) |
m68k/irq: Rename irq_controller to irq_chip
Make it more similar to the genirq version:
- Remove lock (unused as we don't do SMP anyway),
- Prepend methods with irq_,
- Make irq_startup() return unsigned int.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/m68k/mac/macints.c')
-rw-r--r-- | arch/m68k/mac/macints.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/m68k/mac/macints.c b/arch/m68k/mac/macints.c index f92190c159b4..ffa1b3f7e2b7 100644 --- a/arch/m68k/mac/macints.c +++ b/arch/m68k/mac/macints.c | |||
@@ -193,11 +193,10 @@ irqreturn_t mac_debug_handler(int, void *); | |||
193 | void mac_enable_irq(unsigned int irq); | 193 | void mac_enable_irq(unsigned int irq); |
194 | void mac_disable_irq(unsigned int irq); | 194 | void mac_disable_irq(unsigned int irq); |
195 | 195 | ||
196 | static struct irq_controller mac_irq_controller = { | 196 | static struct irq_chip mac_irq_chip = { |
197 | .name = "mac", | 197 | .name = "mac", |
198 | .lock = __SPIN_LOCK_UNLOCKED(mac_irq_controller.lock), | 198 | .irq_enable = mac_enable_irq, |
199 | .enable = mac_enable_irq, | 199 | .irq_disable = mac_disable_irq, |
200 | .disable = mac_disable_irq, | ||
201 | }; | 200 | }; |
202 | 201 | ||
203 | void __init mac_init_IRQ(void) | 202 | void __init mac_init_IRQ(void) |
@@ -205,7 +204,7 @@ void __init mac_init_IRQ(void) | |||
205 | #ifdef DEBUG_MACINTS | 204 | #ifdef DEBUG_MACINTS |
206 | printk("mac_init_IRQ(): Setting things up...\n"); | 205 | printk("mac_init_IRQ(): Setting things up...\n"); |
207 | #endif | 206 | #endif |
208 | m68k_setup_irq_controller(&mac_irq_controller, IRQ_USER, | 207 | m68k_setup_irq_chip(&mac_irq_chip, IRQ_USER, |
209 | NUM_MAC_SOURCES - IRQ_USER); | 208 | NUM_MAC_SOURCES - IRQ_USER); |
210 | /* Make sure the SONIC interrupt is cleared or things get ugly */ | 209 | /* Make sure the SONIC interrupt is cleared or things get ugly */ |
211 | #ifdef SHUTUP_SONIC | 210 | #ifdef SHUTUP_SONIC |