usb: kconfig: fix warning of select USB_OTG
authorPeter Chen <peter.chen@freescale.com>
Thu, 19 Nov 2015 03:47:47 +0000 (11:47 +0800)
committerFelipe Balbi <balbi@ti.com>
Thu, 19 Nov 2015 20:48:48 +0000 (14:48 -0600)
commitac722e302cc057a65cb1d975f8b17e8e11144946
tree03ca26eeaaf1724ad270bd2c8a420d20104d5dd0
parent391e6dcb37857d5659b53def2f41e2f56850d33c
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: Peter Chen <peter.chen@freescale.com>
Reported-by: Arnd Bergmann <arnd@arndb.de>
Cc: Felipe Balbi <balbi@ti.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/core/Kconfig
drivers/usb/phy/Kconfig