]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/plat-omap/include/mach/usb.h
USB: Build USB init code based on config entry, clean-up Makefile
[linux-2.6-omap-h63xx.git] / arch / arm / plat-omap / include / mach / usb.h
index 7d7b2b056e71f42ac8a577229cd26fec925ffa03..47aba6b1e80cef6d749e6e21f5338a6c35f2cd06 100644 (file)
 #define UDC_BASE                       OMAP2_UDC_BASE
 #define OMAP_OHCI_BASE                 OMAP2_OHCI_BASE
 
+#ifdef CONFIG_USB_MUSB_SOC
 extern void usb_musb_init(void);
+#else
+static inline void usb_musb_init(void)
+{
+}
+#endif
+
+#if defined(CONFIG_USB_EHCI_HCD) || defined(CONFIG_USB_EHCI_HCD_MODULE)
 extern void usb_ehci_init(void);
+#else
+static inline void usb_ehci_init(void)
+{
+}
+#endif
 
 #endif