Skip to content

Commit c8fa48d

Browse files
stiggegregkh
authored andcommitted
usb: Fix compile error by selecting USB_OTG_UTILS
The current lpc32xx_defconfig breaks like this, caused by recent phy restructuring: LD init/built-in.o drivers/built-in.o: In function `usb_hcd_nxp_probe': drivers/usb/host/ohci-nxp.c:224: undefined reference to `isp1301_get_client' drivers/built-in.o: In function `lpc32xx_udc_probe': drivers/usb/gadget/lpc32xx_udc.c:3104: undefined reference to `isp1301_get_client' distcc[27867] ERROR: compile (null) on localhost failed make: *** [vmlinux] Error 1 Caused by 1c20888 (usb: Makefile: fix drivers/usb/phy/ Makefile entry) This patch fixes this by selecting USB_OTG_UTILS in Kconfig which causes the phy driver to be built again. Signed-off-by: Roland Stigge <[email protected]> Acked-by: Felipe Balbi <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent d78658d commit c8fa48d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/usb/gadget/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ config USB_LPC32XX
145145
tristate "LPC32XX USB Peripheral Controller"
146146
depends on ARCH_LPC32XX
147147
select USB_ISP1301
148+
select USB_OTG_UTILS
148149
help
149150
This option selects the USB device controller in the LPC32xx SoC.
150151

drivers/usb/phy/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ config USB_ISP1301
3838
tristate "NXP ISP1301 USB transceiver support"
3939
depends on USB || USB_GADGET
4040
depends on I2C
41+
select USB_OTG_UTILS
4142
help
4243
Say Y here to add support for the NXP ISP1301 USB transceiver driver.
4344
This chip is typically used as USB transceiver for USB host, gadget

0 commit comments

Comments
 (0)