phy: fix Kconfig dependencies
authorFelipe Balbi <balbi@ti.com>
Tue, 28 Apr 2015 16:13:15 +0000 (11:13 -0500)
committerKishon Vijay Abraham I <kishon@ti.com>
Tue, 12 May 2015 15:27:18 +0000 (20:57 +0530)
commit7f7a4d306ff87502dc26860f54e798693cf9b1e1
tree7b16f95402bdcd5a6cca2139b751cf58d24b3d28
parent4d051f74cbb270310d1af3f56d4c83801d8bedc8
phy: fix Kconfig dependencies

DM816x PHY uses usb_phy_* methods and because
of that, it must select USB_PHY, however, because
the drivers in question (DM816x, TWL4030 and
OMAP_USB2) sit outside of drivers/usb/ directory,
meaning they can be built even if USB_SUPPORT=n.

This patches fixes the dependencies by adding
USB_SUPPORT as a dependency and making all drivers
select USB_PHY (which cannot be selected through
menuconfig).

Note that this fixes some linking breakages when
building with randconfig.

Cc: Tony Lindgren <tony@atomide.com>
Cc: Kishon Vijay Abraham I <kishon@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/Kconfig