]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
api: Fix building with CONFIG_API
authorMatthias Fuchs <matthias.fuchs@esd-electronics.com>
Wed, 24 Sep 2008 08:29:37 +0000 (10:29 +0200)
committerWolfgang Denk <wd@denx.de>
Tue, 14 Oct 2008 12:58:09 +0000 (14:58 +0200)
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>
api/api_storage.c

index 74391a59d083108ed4c19b6b34dd1e095f82489a..5642dd33bc32c71265e1d470e767c214d821cf1d 100644 (file)
 #include <common.h>
 #include <api_public.h>
 
+#if defined(CONFIG_CMD_USB) && defined(CONFIG_USB_STORAGE)
+#include <usb.h>
+#endif
+
 #define DEBUG
 #undef DEBUG