patch-2.1.15 linux/drivers/char/psaux.c

Next file: linux/drivers/char/serial.c
Previous file: linux/drivers/char/pcwd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.14/linux/drivers/char/psaux.c linux/drivers/char/psaux.c
@@ -270,7 +270,11 @@
 	poll_aux_status();
 	/* reenable kbd bh */
 	enable_bh(KEYBOARD_BH);
+#ifdef CONFIG_MCA
+	free_irq(AUX_IRQ, inode);
+#else
 	free_irq(AUX_IRQ, NULL);
+#endif
 	MOD_DEC_USE_COUNT;
 }
 
@@ -319,7 +323,11 @@
 		return -EBUSY;
 	}
 	queue->head = queue->tail = 0;		/* Flush input queue */
+#ifdef CONFIG_MCA
+	if (request_irq(AUX_IRQ, aux_interrupt, MCA_bus ? SA_SHIRQ : 0, "PS/2 Mouse", inode)) {
+#else
 	if (request_irq(AUX_IRQ, aux_interrupt, 0, "PS/2 Mouse", NULL)) {
+#endif
 		aux_count--;
 		return -EBUSY;
 	}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov