Thread (21 messages) 21 messages, 5 authors, 2007-02-05
STALE7174d

[PATCH] [1/9] pasemi: Default root device

From: Olof Johansson <hidden>
Date: 2007-02-02 05:04:16

Set up default root device on the pasemi platform.

Signed-off-by: Olof Johansson <redacted>


Index: merge/arch/powerpc/platforms/pasemi/setup.c
===================================================================
--- merge.orig/arch/powerpc/platforms/pasemi/setup.c
+++ merge/arch/powerpc/platforms/pasemi/setup.c
@@ -35,6 +35,8 @@
 #include <asm/mpic.h>
 #include <asm/smp.h>
 #include <asm/time.h>
+#include <linux/root_dev.h>
+
 
 #include "pasemi.h"
 
@@ -82,6 +84,14 @@ void __init pas_setup_arch(void)
 	conswitchp = &dummy_con;
 #endif
 
+	if (ROOT_DEV == 0) {
+#ifdef  CONFIG_ROOT_NFS
+		ROOT_DEV = Root_NFS;
+#else
+		ROOT_DEV = Root_SDA1;
+#endif
+	}
+
 	printk(KERN_DEBUG "Using default idle loop\n");
 }
 

--
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help