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

Next file: linux-2.4.19/drivers/macintosh/via-macii.c
Previous file: linux-2.4.19/drivers/macintosh/macserial.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/drivers/macintosh/via-cuda.c linux-2.4.19/drivers/macintosh/via-cuda.c
@@ -222,12 +222,19 @@
 static int
 cuda_init(void)
 {
+#ifdef CONFIG_PPC
     if (via == NULL)
 	return -ENODEV;
-#ifndef CONFIG_PPC
+    return 0;
+#else 
+    int err = cuda_init_via();
+    if (err) {
+	printk(KERN_ERR "cuda_init_via() failed\n");
+	return -ENODEV;
+    }
+
     return via_cuda_start();
 #endif
-    return 0;
 }
 #endif /* CONFIG_ADB */
 

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