patch-2.4.0-test3 linux/arch/mips/ddb5074/setup.c

Next file: linux/arch/mips/dec/prom/memory.c
Previous file: linux/arch/mips/ddb5074/pci.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test2/linux/arch/mips/ddb5074/setup.c linux/arch/mips/ddb5074/setup.c
@@ -18,6 +18,7 @@
 #include <linux/mc146818rtc.h>
 #include <linux/pc_keyb.h>
 #include <linux/pci.h>
+#include <linux/ide.h>
 
 #include <asm/addrspace.h>
 #include <asm/bcache.h>
@@ -38,6 +39,7 @@
 extern void console_setup(char *);
 #endif
 
+extern struct ide_ops std_ide_ops;
 extern struct rtc_ops ddb_rtc_ops;
 
 static void (*back_to_prom)(void) = (void (*)(void))0xbfc00000;
@@ -107,6 +109,9 @@
     _machine_halt = ddb_machine_halt;
     _machine_power_off = ddb_machine_power_off;
 
+#ifdef CONFIG_BLK_DEV_IDE
+    ide_ops = &std_ide_ops;
+#endif
     rtc_ops = &ddb_rtc_ops;
 
     /* Reboot on panic */

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