summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2020-05-09 22:34:42 +0200
committerTom Rini <trini@konsulko.com>2020-06-12 13:17:23 -0400
commit2df3a51510758dc6208ecf36f5e4b929d01f2dd1 (patch)
tree099e3be10e3c88a6bade633283de962fd7f94d3c /drivers/net
parent6a4a5c194df8af25390f4ba30250a76fc0256643 (diff)
downloadu-boot-2df3a51510758dc6208ecf36f5e4b929d01f2dd1.tar.gz
u-boot-2df3a51510758dc6208ecf36f5e4b929d01f2dd1.tar.xz
u-boot-2df3a51510758dc6208ecf36f5e4b929d01f2dd1.zip
net: rtl8139: 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: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/rtl8139.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/rtl8139.c b/drivers/net/rtl8139.c
index 70b09fb2d2..f3190170d3 100644
--- a/drivers/net/rtl8139.c
+++ b/drivers/net/rtl8139.c
@@ -538,8 +538,8 @@ static void rtl8139_name(char *str, int card_number)
}
static struct pci_device_id supported[] = {
- { PCI_VENDOR_ID_REALTEK, PCI_DEVICE_ID_REALTEK_8139 },
- { PCI_VENDOR_ID_DLINK, PCI_DEVICE_ID_DLINK_8139 },
+ { PCI_DEVICE(PCI_VENDOR_ID_REALTEK, PCI_DEVICE_ID_REALTEK_8139) },
+ { PCI_DEVICE(PCI_VENDOR_ID_DLINK, PCI_DEVICE_ID_DLINK_8139) },
{ }
};