[PATCH 20/30] usb gadget: Enable gadget support only when a driver is available

Sascha Hauer s.hauer at pengutronix.de
Thu Jul 5 15:36:50 EDT 2012


Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/usb/gadget/Kconfig |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
index 4eb2f62..f7f2697 100644
--- a/drivers/usb/gadget/Kconfig
+++ b/drivers/usb/gadget/Kconfig
@@ -1,6 +1,11 @@
 menuconfig USB_GADGET
+	depends on USB_HAVE_GADGET_DRIVER
 	bool "USB gadget support            "
 
+config USB_HAVE_GADGET_DRIVER
+	bool
+	default y if ARCH_IMX || ARCH_AT91 || ARCH_PXA
+
 if USB_GADGET
 
 config USB_GADGET_DUALSPEED
-- 
1.7.10




More information about the barebox mailing list