]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: pcnet: Use PCI_DEVICE() to define PCI device compat list
authorMarek Vasut <marek.vasut@gmail.com>
Sun, 17 May 2020 16:24:13 +0000 (18:24 +0200)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Mon, 29 Jun 2020 20:36:35 +0000 (22:36 +0200)
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>
drivers/net/pcnet.c

index edc4dba24cb206b91cb76ad59d400b03a41de8d3..e7ce79e952d6a8cefabc15b39ccb1ee64c79719d 100644 (file)
@@ -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) },
        {}
 };