OSDN Git Service

usb: gadget: fsl: fix link error against usb-gadget module
authorArnd Bergmann <arnd@arndb.de>
Tue, 16 Apr 2019 12:25:32 +0000 (14:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:50:43 +0000 (14:50 +0100)
commit010b0e5100820c1c286ebe44cf0a5e2c57b6d67e
treef5f1380b0d851fdeefda73ddaf6130ff674dcbb9
parentecc81bd72b5e965db2b5c6adc26f985b5637ff9f
usb: gadget: fsl: fix link error against usb-gadget module

[ Upstream commit 2100e3ca3676e894fa48b8f6f01d01733387fe81 ]

The dependency to ensure this driver links correctly fails since
it can not be a loadable module:

drivers/usb/phy/phy-fsl-usb.o: In function `fsl_otg_set_peripheral':
phy-fsl-usb.c:(.text+0x2224): undefined reference to `usb_gadget_vbus_disconnect'

Make the option 'tristate' so it can work correctly.

Fixes: 5a8d651a2bde ("usb: gadget: move gadget API functions to udc-core")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/phy/Kconfig