Since commit 5e0aa49 usb: chipidea: use generic map/unmap routines,
the udc part of the chipidea driver needs the generic usb gadget helper
functions. If the chipidea driver with udc support is build into the
kernel and usb gadget is build a module, the linking of the kernel
fails with:

drivers/built-in.o: In function `_hardware_dequeue':
drivers/usb/chipidea/udc.c:527: undefined reference to 
`usb_gadget_unmap_request'
drivers/usb/chipidea/udc.c:1269: undefined reference to 
`usb_gadget_unmap_request'
drivers/usb/chipidea/udc.c:1821: undefined reference to `usb_del_gadget_udc'
drivers/usb/chipidea/udc.c:443: undefined reference to `usb_gadget_map_request'
drivers/usb/chipidea/udc.c:1774: undefined reference to `usb_add_gadget_udc'

This patch changes the dependencies, so that udc can only be built-in of the
usb gadget is built-in, too.

Signed-off-by: Marc Kleine-Budde <[email protected]>
Cc: Alexander Shishkin <[email protected]>
---
Hello,

this patch is based on v3.5-rc7, is this a candidate for 3.5?

Another solution would be to "select USB_GADGET"....

regards, Marc

 drivers/usb/chipidea/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/chipidea/Kconfig b/drivers/usb/chipidea/Kconfig
index fd36dc8..9993a66 100644
--- a/drivers/usb/chipidea/Kconfig
+++ b/drivers/usb/chipidea/Kconfig
@@ -12,7 +12,7 @@ if USB_CHIPIDEA
 
 config USB_CHIPIDEA_UDC
        bool "ChipIdea device controller"
-       depends on USB_GADGET
+       depends on USB_GADGET=USB_CHIPIDEA
        select USB_GADGET_DUALSPEED
        help
          Say Y here to enable device controller functionality of the
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to