]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Fix compile error related to r8a66597-hcd & usb
authorKumar Gala <galak@kernel.crashing.org>
Mon, 11 Aug 2008 14:16:25 +0000 (09:16 -0500)
committerWolfgang Denk <wd@denx.de>
Mon, 11 Aug 2008 22:00:03 +0000 (00:00 +0200)
When building the 8544DS board we get this error:

In file included from r8a66597-hcd.c:22:
u-boot/include/usb.h:190:2: error: #error USB Lowlevel not defined
make[1]: *** [r8a66597-hcd.o] Error 1

The cleanest fix is to only build r8a66597-hcd.c if CONFIG_USB_R8A66597_HCD
is set.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
drivers/usb/Makefile
drivers/usb/r8a66597-hcd.c

index 2bdbb59cd5673f6efdbef8b86fa2c896adbb9ea6..c67a490f0a9657eca3bf6fa2b4bced363123a7b6 100644 (file)
@@ -25,10 +25,11 @@ include $(TOPDIR)/config.mk
 
 LIB    := $(obj)libusb.a
 
+COBJS-$(CONFIG_USB_R8A66597_HCD) += r8a66597-hcd.o
+
 COBJS-y += isp116x-hcd.o
 COBJS-y += sl811_usb.o
 COBJS-y += usb_ohci.o
-COBJS-y += r8a66597-hcd.o
 COBJS-y += usbdcore.o
 COBJS-y += usbdcore_ep0.o
 COBJS-y += usbdcore_mpc8xx.o
index 3eb4cb03f0859d8f4ce28002b283bcaa8611f422..0d3931e10f368469a68801ab735105f5e3a5474a 100644 (file)
@@ -24,8 +24,6 @@
 
 #include "r8a66597.h"
 
-#if defined(CONFIG_USB_R8A66597_HCD)
-
 #ifdef R8A66597_DEBUG
 #define R8A66597_DPRINT                printf
 #else
@@ -919,6 +917,3 @@ int usb_lowlevel_stop(void)
 
        return 0;
 }
-
-#endif /* CONFIG_USB_R8A66597_HCD */
-