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+rene...@gmail.com> Cc: Daniel Schwierzeck <daniel.schwierz...@gmail.com> Cc: Joe Hershberger <joe.hershber...@ni.com> --- drivers/net/pcnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/pcnet.c b/drivers/net/pcnet.c index 15d102d3a9..d3f3297e12 100644 --- a/drivers/net/pcnet.c +++ b/drivers/net/pcnet.c @@ -152,7 +152,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) }, {} }; -- 2.25.1