public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] api: Fix building with CONFIG_API
@ 2008-09-24  8:29 Matthias Fuchs
  2008-10-14 12:58 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Matthias Fuchs @ 2008-09-24  8:29 UTC (permalink / raw)
  To: u-boot

This patch fixes building with CONFIG_API and COFNIG_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 |    4 ++++
 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
 
-- 
1.5.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] api: Fix building with CONFIG_API
  2008-09-24  8:29 [U-Boot] [PATCH] api: Fix building with CONFIG_API Matthias Fuchs
@ 2008-10-14 12:58 ` Wolfgang Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2008-10-14 12:58 UTC (permalink / raw)
  To: u-boot

Dear Matthias Fuchs,

In message <200809241029.37254.matthias.fuchs@esd-electronics.com> you wrote:
> This patch fixes building with CONFIG_API and COFNIG_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 |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"It's like deja vu all over again."                      - Yogi Berra

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-14 12:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-24  8:29 [U-Boot] [PATCH] api: Fix building with CONFIG_API Matthias Fuchs
2008-10-14 12:58 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox