aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/mac/macints.c
diff options
context:
space:
mode:
authorFinn Thain <fthain@telegraphics.com.au>2011-10-23 10:11:14 -0400
committerGeert Uytterhoeven <geert@linux-m68k.org>2011-12-10 13:52:46 -0500
commit30c0527d15ce4edcde64581e9d062ba9fb08fe16 (patch)
treeda3e996d43a671d2d66075fdc7676f17c688b415 /arch/m68k/mac/macints.c
parent56e63689fd866a865682fe14dc5a7e1ec3b2c3ad (diff)
m68k/mac: cleanup mac_irq_pending
mac_irq_pending() has only one caller (mac_esp.c). Nothing tests for Baboon, PSC or OSS pending interrupts. Until that need arises, let's keep it simple and remove all the unused abstraction. Replace it with a routine to check for SCSI DRQ. 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.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/arch/m68k/mac/macints.c b/arch/m68k/mac/macints.c
index 8fdd990e04ba..fb6147110b34 100644
--- a/arch/m68k/mac/macints.c
+++ b/arch/m68k/mac/macints.c
@@ -142,7 +142,6 @@ extern void via_register_interrupts(void);
142extern void via_irq_enable(int); 142extern void via_irq_enable(int);
143extern void via_irq_disable(int); 143extern void via_irq_disable(int);
144extern void via_irq_clear(int); 144extern void via_irq_clear(int);
145extern int via_irq_pending(int);
146 145
147/* 146/*
148 * OSS hooks 147 * OSS hooks
@@ -152,7 +151,6 @@ extern void oss_register_interrupts(void);
152extern void oss_irq_enable(int); 151extern void oss_irq_enable(int);
153extern void oss_irq_disable(int); 152extern void oss_irq_disable(int);
154extern void oss_irq_clear(int); 153extern void oss_irq_clear(int);
155extern int oss_irq_pending(int);
156 154
157/* 155/*
158 * PSC hooks 156 * PSC hooks
@@ -162,7 +160,6 @@ extern void psc_register_interrupts(void);
162extern void psc_irq_enable(int); 160extern void psc_irq_enable(int);
163extern void psc_irq_disable(int); 161extern void psc_irq_disable(int);
164extern void psc_irq_clear(int); 162extern void psc_irq_clear(int);
165extern int psc_irq_pending(int);
166 163
167/* 164/*
168 * IOP hooks 165 * IOP hooks
@@ -239,7 +236,6 @@ void __init mac_init_IRQ(void)
239/* 236/*
240 * mac_irq_enable - enable an interrupt source 237 * mac_irq_enable - enable an interrupt source
241 * mac_irq_disable - disable an interrupt source 238 * mac_irq_disable - disable an interrupt source
242 * mac_irq_pending - returns the pending status of an IRQ (nonzero = pending)
243 * 239 *
244 * These routines are just dispatchers to the VIA/OSS/PSC routines. 240 * These routines are just dispatchers to the VIA/OSS/PSC routines.
245 */ 241 */
@@ -314,34 +310,6 @@ void mac_irq_disable(struct irq_data *data)
314 } 310 }
315} 311}
316 312
317int mac_irq_pending(unsigned int irq)
318{
319 switch(IRQ_SRC(irq)) {
320 case 1:
321 return via_irq_pending(irq);
322 case 2:
323 case 7:
324 if (oss_present)
325 return oss_irq_pending(irq);
326 else
327 return via_irq_pending(irq);
328 case 3:
329 case 5:
330 case 6:
331 if (psc_present)
332 return psc_irq_pending(irq);
333 else if (oss_present)
334 return oss_irq_pending(irq);
335 break;
336 case 4:
337 if (psc_present)
338 return psc_irq_pending(irq);
339 break;
340 }
341 return 0;
342}
343EXPORT_SYMBOL(mac_irq_pending);
344
345static int num_debug[8]; 313static int num_debug[8];
346 314
347irqreturn_t mac_debug_handler(int irq, void *dev_id) 315irqreturn_t mac_debug_handler(int irq, void *dev_id)