Merge tag 'sound-fix-3.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai...
[cascardo/linux.git] / init / do_mounts.c
index 82f2288..b6237c3 100644 (file)
@@ -539,12 +539,6 @@ void __init prepare_namespace(void)
 {
        int is_floppy;
 
-       if (root_delay) {
-               printk(KERN_INFO "Waiting %d sec before mounting root device...\n",
-                      root_delay);
-               ssleep(root_delay);
-       }
-
        /*
         * wait for the known devices to complete their probing
         *
@@ -571,6 +565,12 @@ void __init prepare_namespace(void)
        if (initrd_load())
                goto out;
 
+       if (root_delay) {
+               pr_info("Waiting %d sec before mounting root device...\n",
+                       root_delay);
+               ssleep(root_delay);
+       }
+
        /* wait for any asynchronous scanning to complete */
        if ((ROOT_DEV == 0) && root_wait) {
                printk(KERN_INFO "Waiting for root device %s...\n",