init: don't try mounting device as nfs root unless type fully matches
[pandora-kernel.git] / init / do_mounts.c
index db6e5ee..d6c229f 100644 (file)
@@ -470,7 +470,7 @@ void __init change_floppy(char *fmt, ...)
 void __init mount_root(void)
 {
 #ifdef CONFIG_ROOT_NFS
-       if (MAJOR(ROOT_DEV) == UNNAMED_MAJOR) {
+       if (ROOT_DEV == Root_NFS) {
                if (mount_nfs_root())
                        return;