diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-06-24 03:30:26 -0400 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-06-29 04:11:41 -0400 |
commit | e43470dbdfe8922f9b2962184336efaa71e59727 (patch) | |
tree | 33770ed002659e6eaa688d9cc05794d2bc83bf4a | |
parent | e135ab7405f562c7709806e355b1521ee68548dc (diff) |
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.
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>
-rw-r--r-- | drivers/usb/dwc2/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/dwc2/Kconfig b/drivers/usb/dwc2/Kconfig index c1f29caa8990..e838701d6dd5 100644 --- a/drivers/usb/dwc2/Kconfig +++ b/drivers/usb/dwc2/Kconfig | |||
@@ -55,6 +55,7 @@ endchoice | |||
55 | config USB_DWC2_PCI | 55 | config USB_DWC2_PCI |
56 | tristate "DWC2 PCI" | 56 | tristate "DWC2 PCI" |
57 | depends on PCI | 57 | depends on PCI |
58 | depends on USB_GADGET || !USB_GADGET | ||
58 | default n | 59 | default n |
59 | select NOP_USB_XCEIV | 60 | select NOP_USB_XCEIV |
60 | help | 61 | help |