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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Nov 2015 00:31:42 +0000 (16:31 -0800)
commitc4f161308ac280ce5b27681ddcc2bbac6de39c20
tree0d0291642497c4d451392d31cf25f4fd377f2d87
parent638148e20c7f8f6e95017fdc13bce8549a6925e0
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/Kconfig
drivers/usb/phy/Kconfig