patch-2.3.16 linux/drivers/macintosh/via-cuda.c

Next file: linux/drivers/macintosh/via-pmu.c
Previous file: linux/drivers/macintosh/nvram.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.15/linux/drivers/macintosh/via-cuda.c linux/drivers/macintosh/via-cuda.c
@@ -94,8 +94,6 @@
 	cuda_poll
 };
 
-__openfirmware
-
 void
 find_via_cuda()
 {
@@ -340,10 +338,11 @@
 {
     int ie;
 
-    ie = _disable_interrupts();
+    __save_flags(ie);
+    __cli();
     if (via[IFR] & SR_INT)
 	via_interrupt(0, 0, 0);
-    _enable_interrupts(ie);
+    __restore_flags(ie);
 }
 
 static void
@@ -496,4 +495,4 @@
 cuda_present(void)
 {
 	return (adb_controller && (adb_controller->kind == ADB_VIACUDA) && via);
-}
\ No newline at end of file
+}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)