summaryrefslogtreecommitdiff
path: root/arch/m68k/mac/via.c
diff options
context:
space:
mode:
authorFinn Thain <fthain@telegraphics.com.au>2011-10-23 14:11:13 (GMT)
committerGeert Uytterhoeven <geert@linux-m68k.org>2011-12-10 18:52:45 (GMT)
commit56e63689fd866a865682fe14dc5a7e1ec3b2c3ad (patch)
treeea3d93e64b186b586a601027a2ad0c95a96c9811 /arch/m68k/mac/via.c
parent93edd023a7de1ea4fe6e5de631982b96156eef03 (diff)
downloadlinux-56e63689fd866a865682fe14dc5a7e1ec3b2c3ad.tar.xz
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/via.c')
-rw-r--r--arch/m68k/mac/via.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/m68k/mac/via.c b/arch/m68k/mac/via.c
index f1600ad..1c2bce7 100644
--- a/arch/m68k/mac/via.c
+++ b/arch/m68k/mac/via.c
@@ -585,22 +585,6 @@ void via_irq_disable(int irq) {
}
}
-void via_irq_clear(int irq) {
- int irq_src = IRQ_SRC(irq);
- int irq_idx = IRQ_IDX(irq);
- int irq_bit = 1 << irq_idx;
-
- if (irq_src == 1) {
- via1[vIFR] = irq_bit;
- } else if (irq_src == 2) {
- via2[gIFR] = irq_bit | rbv_clear;
- } else if (irq_src == 7) {
- /* FIXME: There is no way to clear an individual nubus slot
- * IRQ flag, other than getting the device to do it.
- */
- }
-}
-
/*
* Returns nonzero if an interrupt is pending on the given
* VIA/IRQ combination.