diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2011-09-11 09:40:50 -0400 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2011-11-08 16:35:52 -0500 |
commit | 2690e2148b730c53acb8797821468d0ea1673f25 (patch) | |
tree | b6ba2acc8108ab4ecf437392078e44faa9c54b17 /arch | |
parent | f30a6484f1bcb410d0af0c24f34b8e3d92682a05 (diff) |
m68k/mac: Remove mac_irq_{en,dis}able() wrappers
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/m68k/include/asm/macintosh.h | 2 | ||||
-rw-r--r-- | arch/m68k/mac/baboon.c | 7 | ||||
-rw-r--r-- | arch/m68k/mac/macints.c | 25 |
3 files changed, 11 insertions, 23 deletions
diff --git a/arch/m68k/include/asm/macintosh.h b/arch/m68k/include/asm/macintosh.h index c2a1c5eac1a..12ebe43b008 100644 --- a/arch/m68k/include/asm/macintosh.h +++ b/arch/m68k/include/asm/macintosh.h | |||
@@ -12,6 +12,8 @@ extern void mac_reset(void); | |||
12 | extern void mac_poweroff(void); | 12 | extern void mac_poweroff(void); |
13 | extern void mac_init_IRQ(void); | 13 | extern void mac_init_IRQ(void); |
14 | extern int mac_irq_pending(unsigned int); | 14 | extern int mac_irq_pending(unsigned int); |
15 | extern void mac_irq_enable(struct irq_data *data); | ||
16 | extern void mac_irq_disable(struct irq_data *data); | ||
15 | 17 | ||
16 | /* | 18 | /* |
17 | * Floppy driver magic hook - probably shouldn't be here | 19 | * Floppy driver magic hook - probably shouldn't be here |
diff --git a/arch/m68k/mac/baboon.c b/arch/m68k/mac/baboon.c index b55ead28497..b403924a1ca 100644 --- a/arch/m68k/mac/baboon.c +++ b/arch/m68k/mac/baboon.c | |||
@@ -21,9 +21,6 @@ | |||
21 | 21 | ||
22 | /* #define DEBUG_IRQS */ | 22 | /* #define DEBUG_IRQS */ |
23 | 23 | ||
24 | extern void mac_enable_irq(unsigned int); | ||
25 | extern void mac_disable_irq(unsigned int); | ||
26 | |||
27 | int baboon_present; | 24 | int baboon_present; |
28 | static volatile struct baboon *baboon; | 25 | static volatile struct baboon *baboon; |
29 | static unsigned char baboon_disabled; | 26 | static unsigned char baboon_disabled; |
@@ -111,7 +108,7 @@ void baboon_irq_enable(int irq) | |||
111 | 108 | ||
112 | baboon_disabled &= ~(1 << irq_idx); | 109 | baboon_disabled &= ~(1 << irq_idx); |
113 | if (!baboon_disabled) | 110 | if (!baboon_disabled) |
114 | mac_enable_irq(IRQ_NUBUS_C); | 111 | mac_irq_enable(irq_get_irq_data(IRQ_NUBUS_C)); |
115 | } | 112 | } |
116 | 113 | ||
117 | void baboon_irq_disable(int irq) | 114 | void baboon_irq_disable(int irq) |
@@ -124,7 +121,7 @@ void baboon_irq_disable(int irq) | |||
124 | 121 | ||
125 | baboon_disabled |= 1 << irq_idx; | 122 | baboon_disabled |= 1 << irq_idx; |
126 | if (baboon_disabled) | 123 | if (baboon_disabled) |
127 | mac_disable_irq(IRQ_NUBUS_C); | 124 | mac_irq_disable(irq_get_irq_data(IRQ_NUBUS_C)); |
128 | } | 125 | } |
129 | 126 | ||
130 | void baboon_irq_clear(int irq) | 127 | void baboon_irq_clear(int irq) |
diff --git a/arch/m68k/mac/macints.c b/arch/m68k/mac/macints.c index 98497d288a9..ba220b70ab8 100644 --- a/arch/m68k/mac/macints.c +++ b/arch/m68k/mac/macints.c | |||
@@ -190,19 +190,6 @@ irqreturn_t mac_debug_handler(int, void *); | |||
190 | 190 | ||
191 | /* #define DEBUG_MACINTS */ | 191 | /* #define DEBUG_MACINTS */ |
192 | 192 | ||
193 | void mac_enable_irq(unsigned int irq); | ||
194 | void mac_disable_irq(unsigned int irq); | ||
195 | |||
196 | static void mac_irq_enable(struct irq_data *data) | ||
197 | { | ||
198 | mac_enable_irq(data->irq); | ||
199 | } | ||
200 | |||
201 | static void mac_irq_disable(struct irq_data *data) | ||
202 | { | ||
203 | mac_disable_irq(data->irq); | ||
204 | } | ||
205 | |||
206 | static struct irq_chip mac_irq_chip = { | 193 | static struct irq_chip mac_irq_chip = { |
207 | .name = "mac", | 194 | .name = "mac", |
208 | .irq_enable = mac_irq_enable, | 195 | .irq_enable = mac_irq_enable, |
@@ -250,16 +237,17 @@ void __init mac_init_IRQ(void) | |||
250 | } | 237 | } |
251 | 238 | ||
252 | /* | 239 | /* |
253 | * mac_enable_irq - enable an interrupt source | 240 | * mac_irq_enable - enable an interrupt source |
254 | * mac_disable_irq - disable an interrupt source | 241 | * mac_irq_disable - disable an interrupt source |
255 | * mac_clear_irq - clears a pending interrupt | 242 | * mac_clear_irq - clears a pending interrupt |
256 | * mac_pending_irq - Returns the pending status of an IRQ (nonzero = pending) | 243 | * mac_irq_pending - returns the pending status of an IRQ (nonzero = pending) |
257 | * | 244 | * |
258 | * These routines are just dispatchers to the VIA/OSS/PSC routines. | 245 | * These routines are just dispatchers to the VIA/OSS/PSC routines. |
259 | */ | 246 | */ |
260 | 247 | ||
261 | void mac_enable_irq(unsigned int irq) | 248 | void mac_irq_enable(struct irq_data *data) |
262 | { | 249 | { |
250 | int irq = data->irq; | ||
263 | int irq_src = IRQ_SRC(irq); | 251 | int irq_src = IRQ_SRC(irq); |
264 | 252 | ||
265 | switch(irq_src) { | 253 | switch(irq_src) { |
@@ -292,8 +280,9 @@ void mac_enable_irq(unsigned int irq) | |||
292 | } | 280 | } |
293 | } | 281 | } |
294 | 282 | ||
295 | void mac_disable_irq(unsigned int irq) | 283 | void mac_irq_disable(struct irq_data *data) |
296 | { | 284 | { |
285 | int irq = data->irq; | ||
297 | int irq_src = IRQ_SRC(irq); | 286 | int irq_src = IRQ_SRC(irq); |
298 | 287 | ||
299 | switch(irq_src) { | 288 | switch(irq_src) { |