Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: dwc3: add EXTCON dependency for qcom

Like the omap back-end, we get a link error with CONFIG_EXTCON=m
when building the qcom back-end into the kernel:

drivers/usb/dwc3/dwc3-qcom.o: In function `dwc3_qcom_probe':
dwc3-qcom.c:(.text+0x13dc): undefined reference to `extcon_get_edev_by_phandle'
dwc3-qcom.c:(.text+0x1b18): undefined reference to `devm_extcon_register_notifier'
dwc3-qcom.c:(.text+0x1b9c): undefined reference to `extcon_get_state'

Do the same thing as OMAP and add an explicit dependency on
EXTCON.

Fixes: a4333c3a6ba9 ("usb: dwc3: Add Qualcomm DWC3 glue driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>

authored by

Arnd Bergmann and committed by
Felipe Balbi
3def4031 bb80e4fa

+1 -1
+1 -1
drivers/usb/dwc3/Kconfig
··· 113 113 114 114 config USB_DWC3_QCOM 115 115 tristate "Qualcomm Platform" 116 - depends on ARCH_QCOM || COMPILE_TEST 116 + depends on EXTCON && (ARCH_QCOM || COMPILE_TEST) 117 117 depends on OF 118 118 default USB_DWC3 119 119 help