Skip to content

Commit 3def403

Browse files
arndbFelipe Balbi
authored andcommitted
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: a4333c3 ("usb: dwc3: Add Qualcomm DWC3 glue driver") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
1 parent bb80e4f commit 3def403

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/dwc3/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ config USB_DWC3_ST
113113

114114
config USB_DWC3_QCOM
115115
tristate "Qualcomm Platform"
116-
depends on ARCH_QCOM || COMPILE_TEST
116+
depends on EXTCON && (ARCH_QCOM || COMPILE_TEST)
117117
depends on OF
118118
default USB_DWC3
119119
help

0 commit comments

Comments
 (0)