UPSTREAM: USB: dwc2-usb: add USB_GADGET dependency
authorArnd Bergmann <arnd@arndb.de>
Fri, 24 Jun 2016 07:30:26 +0000 (09:30 +0200)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 3 Jan 2017 10:48:51 +0000 (18:48 +0800)
commit945d99a5ecf41a5797ee1c22908d1d710f484f0b
treeeea0c50315b3c3830aeceb52ed6a0c958d9e950a
parentfc33858df57c0f4182f0de36d56c6704298fcada
UPSTREAM: USB: dwc2-usb: add USB_GADGET dependency

The driver selects NOP_USB_XCEIV, which can only be built-in if
USB_GADGET is either disabled or also built-in, so with USB_DWC2_PCI=y
and USB_GADGET=m, NOP_USB_XCEIV is also built-in and we get this link
error:

drivers/usb/built-in.o: In function `nop_set_peripheral':
(text+0x1927c): undefined reference to `usb_gadget_vbus_connect'
drivers/usb/built-in.o: In function `nop_gpio_vbus_thread':
(text+0x197a0): undefined reference to `usb_gadget_vbus_connect'
(text+0x19830): undefined reference to `usb_gadget_vbus_disconnect'

This adds the same dependency for the dwc2 driver to avoid that
broken configuration.

Change-Id: Ia3f3812443ec143665a9c0382b8f5a2e0c52e9eb
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
(cherry picked from commit e43470dbdfe8922f9b2962184336efaa71e59727)
drivers/usb/dwc2/Kconfig