]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: comedi: remove CONFIG_COMEDI_PCI define
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 19 Jun 2012 23:20:23 +0000 (16:20 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Jun 2012 20:00:42 +0000 (13:00 -0700)
CONFIG_COMEDI_PCI is not actually a Kconfig option. It is defined
in the comedidev.h header based on another Kconfig option being
enabled.

It is only referenced in the skel driver to conditionally compile
in the PCI support code. Use the CONFIG_COMEDI_PCI_DRIVERS Kconfig
option instead and remove the define.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedidev.h
drivers/staging/comedi/drivers/skel.c

index 3bc97ad48593e88fce5ef7e281504806e663a5c0..de8c99c34070ac9b1a5bf40b3b46b7ae275bbde3 100644 (file)
@@ -507,11 +507,4 @@ int comedi_usb_auto_config(struct usb_interface *intf,
                           struct comedi_driver *driver);
 void comedi_usb_auto_unconfig(struct usb_interface *intf);
 
-#ifdef CONFIG_COMEDI_PCI_DRIVERS
-#define CONFIG_COMEDI_PCI
-#endif
-#ifdef CONFIG_COMEDI_PCI_DRIVERS_MODULE
-#define CONFIG_COMEDI_PCI
-#endif
-
 #endif /* _COMEDIDEV_H */
index 6baac525f434edb4963502fd729b87c5cdbe4d6f..9a68eebefca01cc12de98b2e237d799bfc6ac025 100644 (file)
@@ -611,7 +611,7 @@ static int skel_dio_insn_config(struct comedi_device *dev,
        return insn->n;
 }
 
-#ifdef CONFIG_COMEDI_PCI
+#ifdef CONFIG_COMEDI_PCI_DRIVERS
 static int __devinit driver_skel_pci_probe(struct pci_dev *dev,
                                           const struct pci_device_id *ent)
 {