diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-03-25 14:54:30 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-03 06:26:27 +0200 |
commit | 614ac345bfecfd7cb83537a6127a9dd3f0ee4003 (patch) | |
tree | 72b614bd8456a449f34da4b7078d40059c515d4f | |
parent | 66e44981de0e1cfd7f9331157ef4e7868d149327 (diff) | |
download | linux-rpi3-614ac345bfecfd7cb83537a6127a9dd3f0ee4003.tar.gz linux-rpi3-614ac345bfecfd7cb83537a6127a9dd3f0ee4003.tar.bz2 linux-rpi3-614ac345bfecfd7cb83537a6127a9dd3f0ee4003.zip |
usb: mtu3: fix EXTCON dependency
commit 3d54d10c6afed34fd45b852bf76f55e8da31d8ef upstream.
When EXTCON is a loadable module, mtu3 fails to link as built-in:
drivers/usb/mtu3/mtu3_plat.o: In function `mtu3_probe':
mtu3_plat.c:(.text+0x690): undefined reference to `extcon_get_edev_by_phandle'
Add a Kconfig dependency to force mtu3 also to be a loadable module
if extconn is, but still allow it to be built without extcon.
Fixes: d0ed062a8b75 ("usb: mtu3: dual-role mode support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/usb/mtu3/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/mtu3/Kconfig b/drivers/usb/mtu3/Kconfig index 40bbf1f53337..fe58904f350b 100644 --- a/drivers/usb/mtu3/Kconfig +++ b/drivers/usb/mtu3/Kconfig @@ -4,6 +4,7 @@ config USB_MTU3 tristate "MediaTek USB3 Dual Role controller" depends on USB || USB_GADGET depends on ARCH_MEDIATEK || COMPILE_TEST + depends on EXTCON || !EXTCON select USB_XHCI_MTK if USB_SUPPORT && USB_XHCI_HCD help Say Y or M here if your system runs on MediaTek SoCs with |