aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/sun3
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2011-04-13 16:31:28 -0400
committerGeert Uytterhoeven <geert@linux-m68k.org>2011-11-08 16:35:47 -0500
commitc288bf2533e57174b90b07860c4391bcd1ea269c (patch)
tree91fa6ef91d6653f491f41ff97c4da5e28dfd62fe /arch/m68k/sun3
parent3ec7215e5d1a714ef65069a1d0999a31e4930bb7 (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/sun3')
-rw-r--r--arch/m68k/sun3/sun3ints.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/arch/m68k/sun3/sun3ints.c b/arch/m68k/sun3/sun3ints.c
index 6464ad3ae3e6..97fa9edc5a9d 100644
--- a/arch/m68k/sun3/sun3ints.c
+++ b/arch/m68k/sun3/sun3ints.c
@@ -86,13 +86,12 @@ static void sun3_inthandle(unsigned int irq, struct pt_regs *fp)
86 __m68k_handle_int(irq, fp); 86 __m68k_handle_int(irq, fp);
87} 87}
88 88
89static struct irq_controller sun3_irq_controller = { 89static struct irq_chip sun3_irq_chip = {
90 .name = "sun3", 90 .name = "sun3",
91 .lock = __SPIN_LOCK_UNLOCKED(sun3_irq_controller.lock), 91 .irq_startup = m68k_irq_startup,
92 .startup = m68k_irq_startup, 92 .irq_shutdown = m68k_irq_shutdown,
93 .shutdown = m68k_irq_shutdown, 93 .irq_enable = sun3_enable_irq,
94 .enable = sun3_enable_irq, 94 .irq_disable = sun3_disable_irq,
95 .disable = sun3_disable_irq,
96}; 95};
97 96
98void __init sun3_init_IRQ(void) 97void __init sun3_init_IRQ(void)
@@ -100,7 +99,7 @@ void __init sun3_init_IRQ(void)
100 *sun3_intreg = 1; 99 *sun3_intreg = 1;
101 100
102 m68k_setup_auto_interrupt(sun3_inthandle); 101 m68k_setup_auto_interrupt(sun3_inthandle);
103 m68k_setup_irq_controller(&sun3_irq_controller, IRQ_AUTO_1, 7); 102 m68k_setup_irq_chip(&sun3_irq_chip, IRQ_AUTO_1, 7);
104 m68k_setup_user_interrupt(VEC_USER, 128, NULL); 103 m68k_setup_user_interrupt(VEC_USER, 128, NULL);
105 104
106 if (request_irq(IRQ_AUTO_5, sun3_int5, 0, "int5", NULL)) 105 if (request_irq(IRQ_AUTO_5, sun3_int5, 0, "int5", NULL))