]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
usb: mtu3: fix EXTCON dependency
authorArnd Bergmann <arnd@arndb.de>
Mon, 25 Mar 2019 13:54:30 +0000 (14:54 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Wed, 3 Apr 2019 18:12:45 +0000 (13:12 -0500)
commit612b88c5330e591e8c1faec11fb5fe848a5bb490
treeb1494ba1f7a6c1fdefc8f2b56ba27f51f3a139d7
parent2351b1aa5871b2041e729f9dc100593b5efa5e53
usb: mtu3: fix EXTCON dependency

BugLink: https://bugs.launchpad.net/bugs/1823060
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>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/usb/mtu3/Kconfig