mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 06:55:13 +08:00
net: cxgb4vf: use DEFINE_PCI_DEVICE_TABLE
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>
This commit is contained in:
parent
1b13813170
commit
1eb850c74f
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user