diff options
| author | Marek Vasut <[email protected]> | 2020-05-17 17:33:17 +0200 |
|---|---|---|
| committer | Marek Vasut <[email protected]> | 2020-06-18 19:34:40 +0200 |
| commit | e4797c31612d9c31b7b65fce8c3081ae2d150d00 (patch) | |
| tree | 2f31946d6cac0288bd584a3c294104346670ea6e | |
| parent | 1524e409ef130e20e6554446d08be967422d27f7 (diff) | |
net: pcnet: Use PCI_DEVICE() to define PCI device compat list
Use this macro to fully fill the PCI device ID table. This is mandatory
for the DM PCI support, which checks all the fields.
Signed-off-by: Marek Vasut <[email protected]>
Cc: Daniel Schwierzeck <[email protected]>
Cc: Joe Hershberger <[email protected]>
| -rw-r--r-- | drivers/net/pcnet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/pcnet.c b/drivers/net/pcnet.c index edc4dba24cb..e7ce79e952d 100644 --- a/drivers/net/pcnet.c +++ b/drivers/net/pcnet.c @@ -155,7 +155,7 @@ static inline pci_addr_t pcnet_virt_to_mem(const struct eth_device *dev, } static struct pci_device_id supported[] = { - {PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_LANCE}, + { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_LANCE) }, {} }; |
