summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2013-03-06 15:59:20 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-11 10:10:17 -0700
commit83dcad479d8b71c9046abfd38d83fcaa55e14f5c (patch)
tree05b9a73520dd20d1b617fad0b30aa1ed480b59e3 /drivers
parenta6c57d2ed7ac6224ef70cc5d8adaf9ab8996736c (diff)
staging: comedi: adl_pci8164: remove PCI_DEVICE_ID_* define
The PCI device id is only used in the device table. Remove the define and just open code the device id. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/comedi/drivers/adl_pci8164.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/adl_pci8164.c b/drivers/staging/comedi/drivers/adl_pci8164.c
index f5570582e35a..e9ff701d5d91 100644
--- a/drivers/staging/comedi/drivers/adl_pci8164.c
+++ b/drivers/staging/comedi/drivers/adl_pci8164.c
@@ -44,8 +44,6 @@ Configuration Options: not applicable, uses PCI auto config
#define PCI8164_BUF0_REG 0x04
#define PCI8164_BUF1_REG 0x06
-#define PCI_DEVICE_ID_PCI8164 0x8164
-
static int adl_pci8164_insn_read(struct comedi_device *dev,
struct comedi_subdevice *s,
struct comedi_insn *insn,
@@ -166,8 +164,8 @@ static int adl_pci8164_pci_probe(struct pci_dev *dev,
}
static DEFINE_PCI_DEVICE_TABLE(adl_pci8164_pci_table) = {
- { PCI_DEVICE(PCI_VENDOR_ID_ADLINK, PCI_DEVICE_ID_PCI8164) },
- {0}
+ { PCI_DEVICE(PCI_VENDOR_ID_ADLINK, 0x8164) },
+ { 0 }
};
MODULE_DEVICE_TABLE(pci, adl_pci8164_pci_table);