Skip to content

Commit 97dc5bf

Browse files
arndbkishon
authored andcommitted
phy: sun9i-usb: add USB dependency
The sun9i usb phy driver calls of_usb_get_phy_mode(), which is not available if USB is disabled: drivers/built-in.o: In function `sun9i_usb_phy_probe': :(.text+0x7fb0): undefined reference to `of_usb_get_phy_mode' This adds a dependency to avoid the randconfig build errors. Signed-off-by: Arnd Bergmann <[email protected]> Fixes: 9c3b443 ("phy: Add driver to support individual USB PHYs on sun9i") Acked-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Kishon Vijay Abraham I <[email protected]>
1 parent 8005c49 commit 97dc5bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/phy/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ config PHY_SUN9I_USB
233233
tristate "Allwinner sun9i SoC USB PHY driver"
234234
depends on ARCH_SUNXI && HAS_IOMEM && OF
235235
depends on RESET_CONTROLLER
236+
depends on USB_COMMON
236237
select GENERIC_PHY
237238
help
238239
Enable this to support the transceiver that is part of Allwinner

0 commit comments

Comments
 (0)