Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1eb850c7 authored by Jingoo Han's avatar Jingoo Han Committed by David S. Miller
Browse files

net: cxgb4vf: use DEFINE_PCI_DEVICE_TABLE



This macro is used to create a struct pci_device_id array.

Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1b138131
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */