aboutsummaryrefslogtreecommitdiff
path: root/common/cmd_ext2.c
diff options
context:
space:
mode:
authorwdenk2005-03-04 11:27:31 +0000
committerwdenk2005-03-04 11:27:31 +0000
commitb05dcb58fe04c6274fc942fa93efe77072395951 (patch)
tree214508184e4332109c02b2a958e9fefeec7a00b4 /common/cmd_ext2.c
parent47b1e3d77fcd951df45259a4b20cc116d226e10f (diff)
* Fix get_partition_info() parameter error in all other calls
(common/cmd_ide.c, common/cmd_reiser.c, common/cmd_scsi.c). * Enable USB and IDE support for INKA4x0 board * Patch by Andrew Dyer, 28 February 2005: fix ext2load passing an incorrect pointer to get_partition_info() resulting in load failure for devices other than 0
Diffstat (limited to 'common/cmd_ext2.c')
-rw-r--r--common/cmd_ext2.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/cmd_ext2.c b/common/cmd_ext2.c
index 75afb320ecc..af836cd614e 100644
--- a/common/cmd_ext2.c
+++ b/common/cmd_ext2.c
@@ -41,6 +41,9 @@
#include <linux/ctype.h>
#include <asm/byteorder.h>
#include <ext2fs.h>
+#if ((CONFIG_COMMANDS & CFG_CMD_USB) && defined(CONFIG_USB_STORAGE))
+#include <usb.h>
+#endif
#ifndef CONFIG_DOS_PARTITION
#error DOS partition support must be selected
@@ -223,7 +226,7 @@ int do_ext2load (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
PRINTF("Using device %s%d, partition %d\n", argv[1], dev, part);
if (part != 0) {
- if (get_partition_info (&dev_desc[dev], part, &info)) {
+ if (get_partition_info (dev_desc, part, &info)) {
printf ("** Bad partition %d **\n", part);
return(1);
}