]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/openrisc/lib/bootm.c
Clarify bootm OS arguments
[karo-tx-uboot.git] / arch / openrisc / lib / bootm.c
index 2c5d9aea9969650d0be7a0e4883e5121c36691e7..7f716b85982f957896c5a13b9164f5069a8fc2e0 100644 (file)
@@ -63,8 +63,8 @@ int do_bootm_linux(int flag, int argc, char * const argv[],
 
        show_boot_progress(15);
 
-       if (!of_flat_tree && argc > 3)
-               of_flat_tree = (char *)simple_strtoul(argv[3], NULL, 16);
+       if (!of_flat_tree && argc > 1)
+               of_flat_tree = (char *)simple_strtoul(argv[1], NULL, 16);
 #ifdef DEBUG
        printf("## Transferring control to Linux (at address 0x%08lx) " \
                                "ramdisk 0x%08lx, FDT 0x%08lx...\n",