提交 cddbc4b7 编写于 作者: A Arnd Bergmann 提交者: Kishon Vijay Abraham I

usb: phy: add USB_SUPPORT dependency

The driver now calls of_usb_get_dr_mode_by_phy, which is part of the
USB core layer, and it fails to build when that is not provided:

drivers/phy/phy-sun4i-usb.o: In function `sun4i_usb_phy_probe':
phy-sun4i-usb.c:(.text.sun4i_usb_phy_probe+0x140): undefined reference to `of_usb_get_dr_mode_by_phy'

We already have a couple of other PHY drivers with a dependency
on USB_SUPPORT, so that seems to be the easiest fix here.

An alternative would be to adjust the #ifdef in include/linux/usb/of.h
to also check for CONFIG_USB_SUPPORT.
Signed-off-by: NArnd Bergmann <arnd@arndb.de>
Reviewed-by: NHans de Goede <hdegoede@redhat.com>
Fixes: b33ecca8 ("phy-sun4i-usb: Add support for peripheral-only mode")
Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
上级 d83614e4
...@@ -267,7 +267,9 @@ config PHY_SUN4I_USB ...@@ -267,7 +267,9 @@ config PHY_SUN4I_USB
depends on RESET_CONTROLLER depends on RESET_CONTROLLER
depends on EXTCON depends on EXTCON
depends on POWER_SUPPLY depends on POWER_SUPPLY
depends on USB_SUPPORT
select GENERIC_PHY select GENERIC_PHY
select USB_COMMON
help help
Enable this to support the transceiver that is part of Allwinner Enable this to support the transceiver that is part of Allwinner
sunxi SoCs. sunxi SoCs.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册