Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

chipidea: introduce specific Kconfig options for glue drivers

This patch introduces USB_CHIPIDEA_PCI and USB_CHIPIDEA_OF Kconfig options, one
per each specific glue driver. This is needed to provide different dependencies
they have.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Andy Shevchenko and committed by
Greg Kroah-Hartman
d728189d 3a316ec4

+12 -7
+10
drivers/usb/chipidea/Kconfig
··· 10 10 11 11 if USB_CHIPIDEA 12 12 13 + config USB_CHIPIDEA_OF 14 + tristate 15 + depends on OF 16 + default USB_CHIPIDEA 17 + 18 + config USB_CHIPIDEA_PCI 19 + tristate 20 + depends on PCI 21 + default USB_CHIPIDEA 22 + 13 23 config USB_CHIPIDEA_UDC 14 24 bool "ChipIdea device controller" 15 25 depends on USB_GADGET
+2 -7
drivers/usb/chipidea/Makefile
··· 14 14 obj-$(CONFIG_USB_CHIPIDEA) += ci_hdrc_msm.o 15 15 obj-$(CONFIG_USB_CHIPIDEA) += ci_hdrc_zevio.o 16 16 17 - # PCI doesn't provide stubs, need to check 18 - ifneq ($(CONFIG_PCI),) 19 - obj-$(CONFIG_USB_CHIPIDEA) += ci_hdrc_pci.o 20 - endif 17 + obj-$(CONFIG_USB_CHIPIDEA_PCI) += ci_hdrc_pci.o 21 18 22 - ifneq ($(CONFIG_OF),) 23 - obj-$(CONFIG_USB_CHIPIDEA) += usbmisc_imx.o ci_hdrc_imx.o 24 - endif 19 + obj-$(CONFIG_USB_CHIPIDEA_OF) += usbmisc_imx.o ci_hdrc_imx.o