Skip to content

Commit c4fc997

Browse files
wuliangfengZhengShunQian
authored andcommitted
usb: dwc3: rockchip: fix build error if !CONFIG_USB
This patch fix the following build error if CONFIG_USB is disabled and only support dwc3 gadget mode: dwc3-rockchip.c:894: undefined reference to `usb_add_hcd' dwc3-rockchip.c:622: undefined reference to `usb_remove_hcd' ...... dwc3-rockchip-inno.c:268: undefined reference to `usb_remove_hcd' dwc3-rockchip-inno.c:286: undefined reference to `usb_add_hcd' Change-Id: Iaa51ccc642abf5741fcd0d918967954c840240d5 Signed-off-by: William Wu <william.wu@rock-chips.com>
1 parent 261dfe9 commit c4fc997

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

drivers/usb/dwc3/Kconfig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ config USB_DWC3_OF_SIMPLE
9898

9999
config USB_DWC3_ROCKCHIP
100100
tristate "Rockchip Platforms"
101-
depends on EXTCON && (ARCH_ROCKCHIP || COMPILE_TEST)
102-
depends on OF
101+
depends on OF && EXTCON && (ARCH_ROCKCHIP || COMPILE_TEST)
102+
depends on USB=y || USB=USB_DWC3
103103
default USB_DWC3
104104
help
105105
Support of USB2/3 functionality in Rockchip platforms.
@@ -108,6 +108,7 @@ config USB_DWC3_ROCKCHIP
108108
config USB_DWC3_ROCKCHIP_INNO
109109
tristate "Rockchip Platforms with INNO PHY"
110110
depends on OF && COMMON_CLK && ARCH_ROCKCHIP
111+
depends on USB=y || USB=USB_DWC3
111112
default USB_DWC3
112113
help
113114
Support of USB2/3 functionality in Rockchip platforms

0 commit comments

Comments
 (0)