]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: gsc_hpdi: use PCI_DEVICE_SUB()
authorIan Abbott <abbotti@mev.co.uk>
Tue, 5 May 2015 17:47:28 +0000 (18:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 May 2015 12:57:26 +0000 (14:57 +0200)
Use the `PCI_DEVICE_SUB()` macro in the initializer of the PCI module
device table `gsc_hpdi_pci_table[]`.

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/gsc_hpdi.c

index 2e459f6d6fe0c0338de6f9c7dd6bad001165bc56..51ab801e82b086b42875d055f3503d01244305d0 100644 (file)
@@ -702,8 +702,8 @@ static int gsc_hpdi_pci_probe(struct pci_dev *dev,
 }
 
 static const struct pci_device_id gsc_hpdi_pci_table[] = {
-       { PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9080, PCI_VENDOR_ID_PLX,
-                   0x2400, 0, 0, 0},
+       { PCI_DEVICE_SUB(PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9080,
+                        PCI_VENDOR_ID_PLX, 0x2400) },
        { 0 }
 };
 MODULE_DEVICE_TABLE(pci, gsc_hpdi_pci_table);