aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2020-05-17 18:24:13 +0200
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2020-06-29 22:36:35 +0200
commitd3b1df0f396adb2b5c25ff655c3dae8624c41e50 (patch)
tree2f95c2aaa32085de1e023c0610f7c665ed2f3c81
parentb92b8f48fb47c48b3f9df91ea1009b5789d55e19 (diff)
downloadu-boot-d3b1df0f396adb2b5c25ff655c3dae8624c41e50.zip
u-boot-d3b1df0f396adb2b5c25ff655c3dae8624c41e50.tar.gz
u-boot-d3b1df0f396adb2b5c25ff655c3dae8624c41e50.tar.bz2
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 <marek.vasut+renesas@gmail.com> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Cc: Joe Hershberger <joe.hershberger@ni.com>
-rw-r--r--drivers/net/pcnet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/pcnet.c b/drivers/net/pcnet.c
index edc4dba..e7ce79e 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) },
{}
};