aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/atari
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/atari
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/atari')
-rw-r--r--arch/m68k/atari/ataints.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/arch/m68k/atari/ataints.c b/arch/m68k/atari/ataints.c
index 26a804e67bce..ac0ebdf6ca72 100644
--- a/arch/m68k/atari/ataints.c
+++ b/arch/m68k/atari/ataints.c
@@ -320,7 +320,7 @@ extern void atari_microwire_cmd(int cmd);
320 320
321extern int atari_SCC_reset_done; 321extern int atari_SCC_reset_done;
322 322
323static int atari_startup_irq(unsigned int irq) 323static unsigned int atari_startup_irq(unsigned int irq)
324{ 324{
325 m68k_irq_startup(irq); 325 m68k_irq_startup(irq);
326 atari_turnon_irq(irq); 326 atari_turnon_irq(irq);
@@ -338,13 +338,12 @@ static void atari_shutdown_irq(unsigned int irq)
338 vectors[VEC_INT4] = falcon_hblhandler; 338 vectors[VEC_INT4] = falcon_hblhandler;
339} 339}
340 340
341static struct irq_controller atari_irq_controller = { 341static struct irq_chip atari_irq_chip = {
342 .name = "atari", 342 .name = "atari",
343 .lock = __SPIN_LOCK_UNLOCKED(atari_irq_controller.lock), 343 .irq_startup = atari_startup_irq,
344 .startup = atari_startup_irq, 344 .irq_shutdown = atari_shutdown_irq,
345 .shutdown = atari_shutdown_irq, 345 .irq_enable = atari_enable_irq,
346 .enable = atari_enable_irq, 346 .irq_disable = atari_disable_irq,
347 .disable = atari_disable_irq,
348}; 347};
349 348
350/* 349/*
@@ -361,7 +360,7 @@ static struct irq_controller atari_irq_controller = {
361void __init atari_init_IRQ(void) 360void __init atari_init_IRQ(void)
362{ 361{
363 m68k_setup_user_interrupt(VEC_USER, NUM_ATARI_SOURCES - IRQ_USER, NULL); 362 m68k_setup_user_interrupt(VEC_USER, NUM_ATARI_SOURCES - IRQ_USER, NULL);
364 m68k_setup_irq_controller(&atari_irq_controller, 1, NUM_ATARI_SOURCES - 1); 363 m68k_setup_irq_chip(&atari_irq_chip, 1, NUM_ATARI_SOURCES - 1);
365 364
366 /* Initialize the MFP(s) */ 365 /* Initialize the MFP(s) */
367 366