aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorMatthias Fuchs <matthias.fuchs@esd-electronics.com>2008-09-24 10:29:37 +0200
committerWolfgang Denk <wd@denx.de>2008-10-14 14:58:09 +0200
commit3d0ea3110f3431b6c2aee882784f39f97b20bce9 (patch)
tree621139a3aed648af72cd87964d0740b995158ba0 /api
parentabbb90666d5ef2f500ebbedbb80ff60adc56b043 (diff)
downloadu-boot-3d0ea3110f3431b6c2aee882784f39f97b20bce9.zip
u-boot-3d0ea3110f3431b6c2aee882784f39f97b20bce9.tar.gz
u-boot-3d0ea3110f3431b6c2aee882784f39f97b20bce9.tar.bz2
api: Fix building with CONFIG_API
This patch fixes building with CONFIG_API and CONFIG_USB_STORAGE. USB_MAX_STOR_DEV is defined in include/usb.h, but needed in api/api_storage.c. Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
Diffstat (limited to 'api')
-rw-r--r--api/api_storage.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/api/api_storage.c b/api/api_storage.c
index 74391a5..5642dd3 100644
--- a/api/api_storage.c
+++ b/api/api_storage.c
@@ -30,6 +30,10 @@
#include <common.h>
#include <api_public.h>
+#if defined(CONFIG_CMD_USB) && defined(CONFIG_USB_STORAGE)
+#include <usb.h>
+#endif
+
#define DEBUG
#undef DEBUG