summaryrefslogtreecommitdiffstats
path: root/common/cmd_scsi.c
diff options
context:
space:
mode:
authorDenis Peter <d.peter@mpl.ch>2007-04-13 09:13:33 +0200
committerStefan Roese <sr@denx.de>2007-04-13 09:13:33 +0200
commit7882751c78b7ecabfd49b0eff8de27661c71f16c (patch)
treef658ab5fadb46012d24742b56f0d4a977815ea50 /common/cmd_scsi.c
parent0b94504d22e70f537c17a0d38c87edb6e370977d (diff)
downloadtalos-obmc-uboot-7882751c78b7ecabfd49b0eff8de27661c71f16c.tar.gz
talos-obmc-uboot-7882751c78b7ecabfd49b0eff8de27661c71f16c.zip
[PATCH] Fix bugs in cmd_ide.c and cmd_scsi.c
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>
Diffstat (limited to 'common/cmd_scsi.c')
-rw-r--r--common/cmd_scsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_scsi.c b/common/cmd_scsi.c
index da36ed9e1d..00b84fad19 100644
--- a/common/cmd_scsi.c
+++ b/common/cmd_scsi.c
@@ -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;
}
OpenPOWER on IntegriCloud