]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
phy: fix rockchip-inno-usb2 build errors
authorRandy Dunlap <rdunlap@infradead.org>
Thu, 26 Jan 2017 17:42:41 +0000 (09:42 -0800)
committerKishon Vijay Abraham I <kishon@ti.com>
Fri, 27 Jan 2017 07:36:53 +0000 (13:06 +0530)
Fix build errors in phy-rockchip-inno-usb2.c. The driver uses
extcon interfaces so it should depend on EXTCON.

Fixes these build errors:

drivers/built-in.o: In function `rockchip_usb2phy_otg_sm_work':
phy-rockchip-inno-usb2.c:(.text+0x2bcb): undefined reference to `extcon_get_state'
phy-rockchip-inno-usb2.c:(.text+0x2cd4): undefined reference to `extcon_set_state_sync'
phy-rockchip-inno-usb2.c:(.text+0x2cec): undefined reference to `extcon_set_state_sync'
phy-rockchip-inno-usb2.c:(.text+0x2d2d): undefined reference to `extcon_get_state'
drivers/built-in.o: In function `rockchip_usb2phy_probe':
phy-rockchip-inno-usb2.c:(.text+0x31d7): undefined reference to `extcon_get_edev_by_phandle'
phy-rockchip-inno-usb2.c:(.text+0x321a): undefined reference to `devm_extcon_dev_allocate'
phy-rockchip-inno-usb2.c:(.text+0x3230): undefined reference to `devm_extcon_dev_register'
phy-rockchip-inno-usb2.c:(.text+0x375a): undefined reference to `extcon_register_notifier'

Found in linux-next but is also needed in mainline.

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: MyungJoo Ham <myungjoo.ham@samsung.com>
Cc: Chanwoo Choi <cw00.choi@samsung.com>
Cc: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/Kconfig

index eff994d2813967565a0b27eaf2cda61565b16d9a..bb5cf6f49b068761db557067cdeeea5013773d36 100644 (file)
@@ -363,6 +363,7 @@ config PHY_ROCKCHIP_INNO_USB2
        tristate "Rockchip INNO USB2PHY Driver"
        depends on (ARCH_ROCKCHIP || COMPILE_TEST) && OF
        depends on COMMON_CLK
+       depends on EXTCON
        depends on USB_SUPPORT
        select GENERIC_PHY
        select USB_COMMON