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/include/asm/irq.h | |
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/include/asm/irq.h')
-rw-r--r-- | arch/m68k/include/asm/irq.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/arch/m68k/include/asm/irq.h b/arch/m68k/include/asm/irq.h index 69ed0d74d532..d8c6f68b7a78 100644 --- a/arch/m68k/include/asm/irq.h +++ b/arch/m68k/include/asm/irq.h | |||
@@ -93,16 +93,15 @@ struct irq_handler { | |||
93 | const char *devname; | 93 | const char *devname; |
94 | }; | 94 | }; |
95 | 95 | ||
96 | struct irq_controller { | 96 | struct irq_chip { |
97 | const char *name; | 97 | const char *name; |
98 | spinlock_t lock; | 98 | unsigned int (*irq_startup)(unsigned int irq); |
99 | int (*startup)(unsigned int irq); | 99 | void (*irq_shutdown)(unsigned int irq); |
100 | void (*shutdown)(unsigned int irq); | 100 | void (*irq_enable)(unsigned int irq); |
101 | void (*enable)(unsigned int irq); | 101 | void (*irq_disable)(unsigned int irq); |
102 | void (*disable)(unsigned int irq); | ||
103 | }; | 102 | }; |
104 | 103 | ||
105 | extern int m68k_irq_startup(unsigned int); | 104 | extern unsigned int m68k_irq_startup(unsigned int); |
106 | extern void m68k_irq_shutdown(unsigned int); | 105 | extern void m68k_irq_shutdown(unsigned int); |
107 | 106 | ||
108 | /* | 107 | /* |
@@ -113,7 +112,7 @@ extern irq_node_t *new_irq_node(void); | |||
113 | extern void m68k_setup_auto_interrupt(void (*handler)(unsigned int, struct pt_regs *)); | 112 | extern void m68k_setup_auto_interrupt(void (*handler)(unsigned int, struct pt_regs *)); |
114 | extern void m68k_setup_user_interrupt(unsigned int vec, unsigned int cnt, | 113 | extern void m68k_setup_user_interrupt(unsigned int vec, unsigned int cnt, |
115 | void (*handler)(unsigned int, struct pt_regs *)); | 114 | void (*handler)(unsigned int, struct pt_regs *)); |
116 | extern void m68k_setup_irq_controller(struct irq_controller *, unsigned int, unsigned int); | 115 | extern void m68k_setup_irq_chip(struct irq_chip *, unsigned int, unsigned int); |
117 | 116 | ||
118 | asmlinkage void m68k_handle_int(unsigned int); | 117 | asmlinkage void m68k_handle_int(unsigned int); |
119 | asmlinkage void __m68k_handle_int(unsigned int, struct pt_regs *); | 118 | asmlinkage void __m68k_handle_int(unsigned int, struct pt_regs *); |