net: cxgb4vf: use DEFINE_PCI_DEVICE_TABLE
authorJingoo Han <jg1.han@samsung.com>
Tue, 22 Oct 2013 02:59:02 +0000 (11:59 +0900)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Oct 2013 06:19:23 +0000 (02:19 -0400)
This macro is used to create a struct pci_device_id array.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c

index 43bb0123d456ee391432ec58623755033ed12ca7..5f90ec5f7519a4ac6e7916396cff31446f5c614b 100644 (file)
@@ -2905,7 +2905,7 @@ static void cxgb4vf_pci_shutdown(struct pci_dev *pdev)
 #define CH_DEVICE(devid, idx) \
        { PCI_VENDOR_ID_CHELSIO, devid, PCI_ANY_ID, PCI_ANY_ID, 0, 0, idx }
 
-static struct pci_device_id cxgb4vf_pci_tbl[] = {
+static DEFINE_PCI_DEVICE_TABLE(cxgb4vf_pci_tbl) = {
        CH_DEVICE(0xb000, 0),   /* PE10K FPGA */
        CH_DEVICE(0x4800, 0),   /* T440-dbg */
        CH_DEVICE(0x4801, 0),   /* T420-cr */