Commit c4f16130 authored by Peter Chen's avatar Peter Chen Committed by Greg Kroah-Hartman

usb: kconfig: fix warning of select USB_OTG

When choose randconfig for kernel build, it reports below warning:
"warning: (USB_OTG_FSM && FSL_USB2_OTG && USB_MV_OTG) selects USB_OTG
which has unmet direct dependencies (USB_SUPPORT && USB && PM)"

In fact, USB_OTG is visible symbol and depends on PM, so the driver
needs to depend on it to reduce dependency problem.
Signed-off-by: default avatarPeter Chen <peter.chen@freescale.com>
Reported-by: default avatarArnd Bergmann <arnd@arndb.de>
Cc: Felipe Balbi <balbi@ti.com>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 638148e2
...@@ -77,8 +77,7 @@ config USB_OTG_BLACKLIST_HUB ...@@ -77,8 +77,7 @@ config USB_OTG_BLACKLIST_HUB
config USB_OTG_FSM config USB_OTG_FSM
tristate "USB 2.0 OTG FSM implementation" tristate "USB 2.0 OTG FSM implementation"
depends on USB depends on USB && USB_OTG
select USB_OTG
select USB_PHY select USB_PHY
help help
Implements OTG Finite State Machine as specified in On-The-Go Implements OTG Finite State Machine as specified in On-The-Go
......
...@@ -21,7 +21,6 @@ config AB8500_USB ...@@ -21,7 +21,6 @@ config AB8500_USB
config FSL_USB2_OTG config FSL_USB2_OTG
bool "Freescale USB OTG Transceiver Driver" bool "Freescale USB OTG Transceiver Driver"
depends on USB_EHCI_FSL && USB_FSL_USB2 && USB_OTG_FSM && PM depends on USB_EHCI_FSL && USB_FSL_USB2 && USB_OTG_FSM && PM
select USB_OTG
select USB_PHY select USB_PHY
help help
Enable this to support Freescale USB OTG transceiver. Enable this to support Freescale USB OTG transceiver.
...@@ -168,8 +167,7 @@ config USB_QCOM_8X16_PHY ...@@ -168,8 +167,7 @@ config USB_QCOM_8X16_PHY
config USB_MV_OTG config USB_MV_OTG
tristate "Marvell USB OTG support" tristate "Marvell USB OTG support"
depends on USB_EHCI_MV && USB_MV_UDC && PM depends on USB_EHCI_MV && USB_MV_UDC && PM && USB_OTG
select USB_OTG
select USB_PHY select USB_PHY
help help
Say Y here if you want to build Marvell USB OTG transciever Say Y here if you want to build Marvell USB OTG transciever
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment