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)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 3 May 2019 06:13:47 +0000 (09:13 +0300)
commit2100e3ca3676e894fa48b8f6f01d01733387fe81
tree2d602d234f31f689e0d1c814872793541036cc57
parent793409292382027226769d0299987f06cbd97a6e
usb: gadget: fsl: fix link error against usb-gadget module

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>
drivers/usb/phy/Kconfig