1
linux/drivers/usb/chipidea
Marc Kleine-Budde 71a5e61b81 usb: chipidea: fix and improve dependencies if usb host or gadget support is built as module
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 built into the
kernel and usb gadget is built 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 support can only be
activated if the linux gadget support (USB_GADGET) is builtin or both
chipidea driver and USB_GADGET are modular. Same dependencies for the
chipidea host support and the linux host side USB support (USB).

While there, fix the indention of chipidea the help text.

Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-08-10 11:46:04 -07:00
..
bits.h usb: chipidea: add host role 2012-05-11 16:56:15 -07:00
ci13xxx_imx.c usb: chipidea: add imx platform driver 2012-07-09 10:01:09 -07:00
ci13xxx_msm.c USB: Chipidea: add unified ci13xxx_{add,remove}_device for platform drivers 2012-07-09 09:53:44 -07:00
ci13xxx_pci.c USB: Chipidea: add unified ci13xxx_{add,remove}_device for platform drivers 2012-07-09 09:53:44 -07:00
ci.h usb: chipidea: permit driver bindings pass phy pointer 2012-07-09 09:59:23 -07:00
core.c usb: chipidea: permit driver bindings pass phy pointer 2012-07-09 09:59:23 -07:00
debug.c USB: Chipidea: rename struct ci13xxx variables from udc to ci 2012-07-09 09:52:15 -07:00
debug.h
host.c usb: chipidea: permit driver bindings pass phy pointer 2012-07-09 09:59:23 -07:00
host.h usb: chipidea: add host role 2012-05-11 16:56:15 -07:00
Kconfig usb: chipidea: fix and improve dependencies if usb host or gadget support is built as module 2012-08-10 11:46:04 -07:00
Makefile usb: chipidea: add imx platform driver 2012-07-09 10:01:09 -07:00
udc.c usb: chipidea: permit driver bindings pass phy pointer 2012-07-09 09:59:23 -07:00
udc.h usb: chipidea: use generic map/unmap routines 2012-05-11 16:59:35 -07:00