From: Marek Vasut Date: Sun, 17 May 2020 16:24:13 +0000 (+0200) Subject: net: pcnet: Use PCI_DEVICE() to define PCI device compat list X-Git-Tag: v2020.10~139^2~4^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d3b1df0f396adb2b5c25ff655c3dae8624c41e50;p=platform%2Fkernel%2Fu-boot.git 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 Cc: Daniel Schwierzeck Cc: Joe Hershberger --- 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) }, {} };