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/apollo | |
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/apollo')
-rw-r--r-- | arch/m68k/apollo/dn_ints.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/m68k/apollo/dn_ints.c b/arch/m68k/apollo/dn_ints.c index 5d47f3aa3810..d6e8f33466be 100644 --- a/arch/m68k/apollo/dn_ints.c +++ b/arch/m68k/apollo/dn_ints.c | |||
@@ -12,7 +12,7 @@ void dn_process_int(unsigned int irq, struct pt_regs *fp) | |||
12 | *(volatile unsigned char *)(picb)=0x20; | 12 | *(volatile unsigned char *)(picb)=0x20; |
13 | } | 13 | } |
14 | 14 | ||
15 | int apollo_irq_startup(unsigned int irq) | 15 | unsigned int apollo_irq_startup(unsigned int irq) |
16 | { | 16 | { |
17 | if (irq < 8) | 17 | if (irq < 8) |
18 | *(volatile unsigned char *)(pica+1) &= ~(1 << irq); | 18 | *(volatile unsigned char *)(pica+1) &= ~(1 << irq); |
@@ -29,16 +29,15 @@ void apollo_irq_shutdown(unsigned int irq) | |||
29 | *(volatile unsigned char *)(picb+1) |= (1 << (irq - 8)); | 29 | *(volatile unsigned char *)(picb+1) |= (1 << (irq - 8)); |
30 | } | 30 | } |
31 | 31 | ||
32 | static struct irq_controller apollo_irq_controller = { | 32 | static struct irq_chip apollo_irq_chip = { |
33 | .name = "apollo", | 33 | .name = "apollo", |
34 | .lock = __SPIN_LOCK_UNLOCKED(apollo_irq_controller.lock), | 34 | .irq_startup = apollo_irq_startup, |
35 | .startup = apollo_irq_startup, | 35 | .irq_shutdown = apollo_irq_shutdown, |
36 | .shutdown = apollo_irq_shutdown, | ||
37 | }; | 36 | }; |
38 | 37 | ||
39 | 38 | ||
40 | void __init dn_init_IRQ(void) | 39 | void __init dn_init_IRQ(void) |
41 | { | 40 | { |
42 | m68k_setup_user_interrupt(VEC_USER + 96, 16, dn_process_int); | 41 | m68k_setup_user_interrupt(VEC_USER + 96, 16, dn_process_int); |
43 | m68k_setup_irq_controller(&apollo_irq_controller, IRQ_APOLLO, 16); | 42 | m68k_setup_irq_chip(&apollo_irq_chip, IRQ_APOLLO, 16); |
44 | } | 43 | } |