Skip to content

Commit cd1631c

Browse files
Carolyn WybornyJeff Kirsher
authored andcommitted
igb: Cleanups to replace deprecated DEFINE_PCI_DEVICE_TABLE
This patch changes implementation to remove use of DEFINE_PCI_DEVICE_TABLE. This patch fixes WARNING:DEFINE_PCI_DEVICE_TABLE Signed-off-by: Carolyn Wyborny <[email protected]> Tested-by: Aaron Brown <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 6dd6d2b commit cd1631c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/intel/igb/igb_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static const struct e1000_info *igb_info_tbl[] = {
7272
[board_82575] = &e1000_82575_info,
7373
};
7474

75-
static DEFINE_PCI_DEVICE_TABLE(igb_pci_tbl) = {
75+
static const struct pci_device_id igb_pci_tbl[] = {
7676
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_I354_BACKPLANE_1GBPS) },
7777
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_I354_SGMII) },
7878
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_I354_BACKPLANE_2_5GBPS) },

0 commit comments

Comments
 (0)