mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 01:46:41 +07:00
8139cp: use PCI_DEVICE() to shorten the PCI device table
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
This commit is contained in:
parent
7668a4945b
commit
cccb20d3a9
@ -406,10 +406,8 @@ static int cp_set_eeprom(struct net_device *dev,
|
|||||||
struct ethtool_eeprom *eeprom, u8 *data);
|
struct ethtool_eeprom *eeprom, u8 *data);
|
||||||
|
|
||||||
static struct pci_device_id cp_pci_tbl[] = {
|
static struct pci_device_id cp_pci_tbl[] = {
|
||||||
{ PCI_VENDOR_ID_REALTEK, PCI_DEVICE_ID_REALTEK_8139,
|
{ PCI_DEVICE(PCI_VENDOR_ID_REALTEK, PCI_DEVICE_ID_REALTEK_8139), },
|
||||||
PCI_ANY_ID, PCI_ANY_ID, 0, 0, },
|
{ PCI_DEVICE(PCI_VENDOR_ID_TTTECH, PCI_DEVICE_ID_TTTECH_MC322), },
|
||||||
{ PCI_VENDOR_ID_TTTECH, PCI_DEVICE_ID_TTTECH_MC322,
|
|
||||||
PCI_ANY_ID, PCI_ANY_ID, 0, 0, },
|
|
||||||
{ },
|
{ },
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(pci, cp_pci_tbl);
|
MODULE_DEVICE_TABLE(pci, cp_pci_tbl);
|
||||||
|
Loading…
Reference in New Issue
Block a user