aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/mac/macints.c
diff options
context:
space:
mode:
authorFinn Thain <fthain@telegraphics.com.au>2011-09-11 09:40:50 -0400
committerGeert Uytterhoeven <geert@linux-m68k.org>2011-11-08 16:35:52 -0500
commit2690e2148b730c53acb8797821468d0ea1673f25 (patch)
treeb6ba2acc8108ab4ecf437392078e44faa9c54b17 /arch/m68k/mac/macints.c
parentf30a6484f1bcb410d0af0c24f34b8e3d92682a05 (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/m68k/mac/macints.c')
-rw-r--r--arch/m68k/mac/macints.c25
1 files changed, 7 insertions, 18 deletions
diff --git a/arch/m68k/mac/macints.c b/arch/m68k/mac/macints.c
index 98497d288a9b..ba220b70ab8c 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
193void mac_enable_irq(unsigned int irq);
194void mac_disable_irq(unsigned int irq);
195
196static void mac_irq_enable(struct irq_data *data)
197{
198 mac_enable_irq(data->irq);
199}
200
201static void mac_irq_disable(struct irq_data *data)
202{
203 mac_disable_irq(data->irq);
204}
205
206static struct irq_chip mac_irq_chip = { 193static 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
261void mac_enable_irq(unsigned int irq) 248void 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
295void mac_disable_irq(unsigned int irq) 283void 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) {