summaryrefslogtreecommitdiffstats
path: root/drivers/staging/comedi/Makefile
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2014-10-31 17:47:38 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-07 09:24:33 -0800
commitba9ac25e96241d7f059dac3fcb9175c1491e425d (patch)
tree372181032b24583aa62e66dde0df61b7a221f382 /drivers/staging/comedi/Makefile
parentaae434b3c34d124abe2dc4ea86d9ba9b2bcf403a (diff)
downloadop-kernel-dev-ba9ac25e96241d7f059dac3fcb9175c1491e425d.zip
op-kernel-dev-ba9ac25e96241d7f059dac3fcb9175c1491e425d.tar.gz
staging: comedi: split out USB support into new module
Setting the `CONFIG_COMEDI_USB_DRIVERS` kernel configuration option makes the main "comedi" module depend on the "usbcore" module. But perhaps the machine has no USB controllers (or they have been disabled), in which case the "usbcore" module may have been pulled in unnecessarily. Only a few low-level Comedi drivers require USB support. The Comedi USB support functions are all in "comedi_usb.c". Turn it into a separate module so we don't have to pull in the "usbcore" and "usb_common" modules unnecessarily. Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/Makefile')
-rw-r--r--drivers/staging/comedi/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/comedi/Makefile b/drivers/staging/comedi/Makefile
index cfb121a..e28eaeb 100644
--- a/drivers/staging/comedi/Makefile
+++ b/drivers/staging/comedi/Makefile
@@ -3,11 +3,11 @@ ccflags-$(CONFIG_COMEDI_DEBUG) := -DDEBUG
comedi-y := comedi_fops.o range.o drivers.o \
comedi_buf.o
comedi-$(CONFIG_COMEDI_PCI_DRIVERS) += comedi_pci.o
-comedi-$(CONFIG_COMEDI_USB_DRIVERS) += comedi_usb.o
comedi-$(CONFIG_PROC_FS) += proc.o
comedi-$(CONFIG_COMPAT) += comedi_compat32.o
obj-$(CONFIG_COMEDI_PCMCIA_DRIVERS) += comedi_pcmcia.o
+obj-$(CONFIG_COMEDI_USB_DRIVERS) += comedi_usb.o
obj-$(CONFIG_COMEDI) += comedi.o
OpenPOWER on IntegriCloud