mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-01 09:00:45 +09:00
[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>
This commit is contained in:
parent
0b94504d22
commit
7882751c78
@ -423,7 +423,7 @@ int do_diskboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
part = simple_strtoul(++ep, NULL, 16);
|
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);
|
SHOW_BOOT_PROGRESS (-1);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -248,7 +248,7 @@ int do_scsiboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
part = simple_strtoul(++ep, NULL, 16);
|
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");
|
printf("error reading partinfo\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user