staging: comedi: amplc_pci224: remove PCI_DEVICE_ID_... macros
authorIan Abbott <abbotti@mev.co.uk>
Thu, 31 Jul 2014 13:47:53 +0000 (14:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Aug 2014 19:23:09 +0000 (12:23 -0700)
The macros `PCI_DEVICE_ID_AMPLICON_PCI224` and
`PCI_DEVICE_ID_AMPLICON_PCI234` are only used in the PCI module device
table `amplc_pci224_pci_table[]`.  Just expand the macros where they are
used and remove them.  The macro `PCI_DEVICE_ID_INVALID` is no longer
used either, so remove it.

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>
drivers/staging/comedi/drivers/amplc_pci224.c

index 675bbe896b184a714a7a8fc951f93d4c1ee7df90..caca0c92b6132c34701cd6a293267170d9b9e7ef 100644 (file)
 #include "comedi_fc.h"
 #include "8253.h"
 
-/*
- * PCI IDs.
- */
-#define PCI_DEVICE_ID_AMPLICON_PCI224 0x0007
-#define PCI_DEVICE_ID_AMPLICON_PCI234 0x0008
-#define PCI_DEVICE_ID_INVALID 0xffff
-
 /*
  * PCI224/234 i/o space 1 (PCIBAR2) registers.
  */
@@ -1215,8 +1208,8 @@ static int amplc_pci224_pci_probe(struct pci_dev *dev,
 }
 
 static const struct pci_device_id amplc_pci224_pci_table[] = {
-       { PCI_VDEVICE(AMPLICON, PCI_DEVICE_ID_AMPLICON_PCI224), pci224_model },
-       { PCI_VDEVICE(AMPLICON, PCI_DEVICE_ID_AMPLICON_PCI234), pci234_model },
+       { PCI_VDEVICE(AMPLICON, 0x0007), pci224_model },
+       { PCI_VDEVICE(AMPLICON, 0x0008), pci234_model },
        { 0 }
 };
 MODULE_DEVICE_TABLE(pci, amplc_pci224_pci_table);
This page took 0.037475 seconds and 5 git commands to generate.