patch-2.4.13 linux/arch/arm/mach-sa1100/xp860.c
Next file: linux/arch/arm/mm/extable.c
Previous file: linux/arch/arm/mach-sa1100/sa1111.h
Back to the patch index
Back to the overall index
-  Lines: 29
-  Date:
Thu Oct 11 09:04:57 2001
-  Orig file: 
v2.4.12/linux/arch/arm/mach-sa1100/xp860.c
-  Orig date: 
Mon Aug 27 12:41:38 2001
diff -u --recursive --new-file v2.4.12/linux/arch/arm/mach-sa1100/xp860.c linux/arch/arm/mach-sa1100/xp860.c
@@ -28,10 +28,27 @@
 	while(1);
 }
 
+/*
+ * Note: I replaced the sa1111_init() without the full SA1111 initialisation
+ * because this machine doesn't appear to use the DMA features.  If this is
+ * wrong, please look at neponset.c to fix it properly.
+ */
 static int __init xp860_init(void)
 {
 	pm_power_off = xp860_power_off;
-	sa1111_init();
+
+	/*
+	 * Probe for SA1111.
+	 */
+	ret = sa1111_probe();
+	if (ret < 0)
+		return ret;
+
+	/*
+	 * We found it.  Wake the chip up.
+	 */
+	sa1111_wake();
+
 	return 0;
 }
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)