aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/mac/oss.c
diff options
context:
space:
mode:
authorFinn Thain <fthain@telegraphics.com.au>2011-10-23 10:11:13 -0400
committerGeert Uytterhoeven <geert@linux-m68k.org>2011-12-10 13:52:45 -0500
commit56e63689fd866a865682fe14dc5a7e1ec3b2c3ad (patch)
treeea3d93e64b186b586a601027a2ad0c95a96c9811 /arch/m68k/mac/oss.c
parent93edd023a7de1ea4fe6e5de631982b96156eef03 (diff)
m68k/mac: cleanup mac_clear_irq
mac_clear_irq() is dead code and has been dead for as long as I can recall. On certain Mac models, certain irqs can't be cleared this way. Outside of irq dispatch, this code appears be unusable without busy loops or worse, and for irq dispatch we duplicate the same logic. Remove mac_clear_irq() and supporting code. Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k/mac/oss.c')
-rw-r--r--arch/m68k/mac/oss.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/arch/m68k/mac/oss.c b/arch/m68k/mac/oss.c
index a4c82dab9ff1..2344af31e836 100644
--- a/arch/m68k/mac/oss.c
+++ b/arch/m68k/mac/oss.c
@@ -221,37 +221,6 @@ void oss_irq_disable(int irq) {
221} 221}
222 222
223/* 223/*
224 * Clear an OSS interrupt
225 *
226 * Not sure if this works or not but it's the only method I could
227 * think of based on the contents of the mac_oss structure.
228 */
229
230void oss_irq_clear(int irq) {
231 /* FIXME: how to do this on OSS? */
232 switch(irq) {
233 case IRQ_MAC_SCC:
234 oss->irq_pending &= ~OSS_IP_IOPSCC;
235 break;
236 case IRQ_MAC_ADB:
237 oss->irq_pending &= ~OSS_IP_IOPISM;
238 break;
239 case IRQ_MAC_SCSI:
240 oss->irq_pending &= ~OSS_IP_SCSI;
241 break;
242 case IRQ_NUBUS_9:
243 case IRQ_NUBUS_A:
244 case IRQ_NUBUS_B:
245 case IRQ_NUBUS_C:
246 case IRQ_NUBUS_D:
247 case IRQ_NUBUS_E:
248 irq -= NUBUS_SOURCE_BASE;
249 oss->irq_pending &= ~(1 << irq);
250 break;
251 }
252}
253
254/*
255 * Check to see if a specific OSS interrupt is pending 224 * Check to see if a specific OSS interrupt is pending
256 */ 225 */
257 226