]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
[PATCH] Fix bugs in cmd_ide.c and cmd_scsi.c
authorDenis Peter <d.peter@mpl.ch>
Fri, 13 Apr 2007 07:13:33 +0000 (09:13 +0200)
committerStefan Roese <sr@denx.de>
Fri, 13 Apr 2007 07:13:33 +0000 (09:13 +0200)
Fix bug introduced by "Fix get_partition_info() parameter error in all
other calls" from 2005-03-04 in cmd_ide.c and cmd_scsi.c, which prevented
to use diskboot or scsiboot form another device than 0.

Signed-off-by: Denis Peter <d.peter@mpl.ch>
common/cmd_ide.c
common/cmd_scsi.c

index 28797a920c5d2420c4015326fc3958a880cb58fe..ce99a41ab7db6eaaa76c5ac5ae700481fceabac1 100644 (file)
@@ -423,7 +423,7 @@ int do_diskboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                }
                part = simple_strtoul(++ep, NULL, 16);
        }
-       if (get_partition_info (ide_dev_desc, part, &info)) {
+       if (get_partition_info (&ide_dev_desc[dev], part, &info)) {
                SHOW_BOOT_PROGRESS (-1);
                return 1;
        }
index da36ed9e1d1937e0e28c5abe3e479008970795a0..00b84fad19acf315d260871bf2efac99290fcf16 100644 (file)
@@ -248,7 +248,7 @@ int do_scsiboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                }
                part = simple_strtoul(++ep, NULL, 16);
        }
-       if (get_partition_info (scsi_dev_desc, part, &info)) {
+       if (get_partition_info (&scsi_dev_desc[dev], part, &info)) {
                printf("error reading partinfo\n");
                return 1;
        }