From: Marek Vasut Date: Sat, 9 May 2020 20:34:42 +0000 (+0200) Subject: net: rtl8139: Use PCI_DEVICE() to define PCI device compat list X-Git-Tag: v2025.01-rc5-pxa1908~2332^2~15^2~4 X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-logo.png?a=commitdiff_plain;h=2df3a51510758dc6208ecf36f5e4b929d01f2dd1;p=u-boot.git 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 Cc: Joe Hershberger --- 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) }, { } };