diff options
Diffstat (limited to 'common')
| -rw-r--r-- | common/cmd_ext2.c | 5 | ||||
| -rw-r--r-- | common/cmd_ide.c | 2 | ||||
| -rw-r--r-- | common/cmd_reiser.c | 2 | ||||
| -rw-r--r-- | common/cmd_scsi.c | 2 | 
4 files changed, 7 insertions, 4 deletions
| diff --git a/common/cmd_ext2.c b/common/cmd_ext2.c index 75afb320e..af836cd61 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);  		} diff --git a/common/cmd_ide.c b/common/cmd_ide.c index 1cc88e3e5..e185c95b2 100644 --- a/common/cmd_ide.c +++ b/common/cmd_ide.c @@ -413,7 +413,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[dev], part, &info)) { +	if (get_partition_info (ide_dev_desc, part, &info)) {  		SHOW_BOOT_PROGRESS (-1);  		return 1;  	} diff --git a/common/cmd_reiser.c b/common/cmd_reiser.c index cb316e596..508ffcbda 100644 --- a/common/cmd_reiser.c +++ b/common/cmd_reiser.c @@ -212,7 +212,7 @@ int do_reiserload (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;  		} diff --git a/common/cmd_scsi.c b/common/cmd_scsi.c index 68e46b638..7ee9d8efb 100644 --- a/common/cmd_scsi.c +++ b/common/cmd_scsi.c @@ -243,7 +243,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[dev], part, &info)) { +	if (get_partition_info (scsi_dev_desc, part, &info)) {  		printf("error reading partinfo\n");  		return 1;  	} |