usb: fsl: drop USB_FSL_MPH_DR_OF Kconfig symbol
authorArnd Bergmann <arnd@arndb.de>
Thu, 28 Jan 2016 16:20:54 +0000 (17:20 +0100)
committerFelipe Balbi <balbi@kernel.org>
Fri, 4 Mar 2016 13:14:29 +0000 (15:14 +0200)
commitd0fc35bc0889c7157527ed5758f54101ec015839
tree5e769fe3b6ad528d8ea9390d40d69b87af73402b
parent65bc0fba4ed6e2ea7d89539985feb576ae2f84b9
usb: fsl: drop USB_FSL_MPH_DR_OF Kconfig symbol

The USB_FSL_MPH_DR_OF symbol is used to ensure the code that interprets
the DR device node is built whenever one of the two drivers (EHCI or
UDC) for the platform is enabled. However, if CONFIG_USB is disabled
and we only support gadget mode, this causes a Kconfig warning:

warning: (USB_FSL_USB2) selects USB_FSL_MPH_DR_OF which has unmet direct dependencies (USB_SUPPORT && USB)

We can avoid this warning by simply no longer using the symbol,
and making sure we enter the drivers/usb/host/ directory when
the UDC driver is enabled that needs the file, and then we use
Makefile syntax to ensure the file is built-in if needed.

There is currently a dependency on CONFIG_OF, but this is redundant,
as we already know that this is set unconditionally for the platforms
that use this driver.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/Makefile
drivers/usb/gadget/udc/Kconfig
drivers/usb/host/Kconfig
drivers/usb/host/Makefile
This page took 0.024767 seconds and 5 git commands to generate.