summaryrefslogtreecommitdiff
path: root/common/cmd_usb.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2005-02-24 23:23:29 +0000
committerwdenk <wdenk>2005-02-24 23:23:29 +0000
commit1968e615d4092f728f4732a0b148ded6d1caa731 (patch)
tree66de94197932c86badc51db7f7ba9b17a8640e1a /common/cmd_usb.c
parent151ab83a936e66cf56971a0e0340609528474734 (diff)
downloadu-boot-imx-1968e615d4092f728f4732a0b148ded6d1caa731.zip
u-boot-imx-1968e615d4092f728f4732a0b148ded6d1caa731.tar.gz
u-boot-imx-1968e615d4092f728f4732a0b148ded6d1caa731.tar.bz2
Cleanup USB and partition defines
Diffstat (limited to 'common/cmd_usb.c')
-rw-r--r--common/cmd_usb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/cmd_usb.c b/common/cmd_usb.c
index 0bf050b..25a3cc4 100644
--- a/common/cmd_usb.c
+++ b/common/cmd_usb.c
@@ -32,7 +32,9 @@
#include <usb.h>
+#ifdef CONFIG_USB_STORAGE
static int usb_stor_curr_dev=-1; /* current device */
+#endif
/* some display routines (info command) */
char * usb_get_class_desc(unsigned char dclass)
@@ -441,7 +443,9 @@ int do_usb (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
int i;
struct usb_device *dev = NULL;
+#ifdef CONFIG_USB_STORAGE
block_dev_desc_t *stor_dev;
+#endif
if ((strncmp(argv[1],"reset",5) == 0) ||
(strncmp(argv[1],"start",5) == 0)){