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

From: Olof Johansson <[email-masked]>
Date: Thu, 01 Feb 2007 22:54:49 -0600

Set up default root device on the pasemi platform.

Signed-off-by: Olof Johansson <[email-masked]>

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");
 }

--