]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: dc2114x: Use PCI_DEVICE() to define PCI device compat list
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sat, 20 Jun 2020 15:36:42 +0000 (17:36 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Sat, 25 Jul 2020 09:24:01 +0000 (11:24 +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: Joe Hershberger <joe.hershberger@ni.com>
Cc: Ramon Fried <rfried.dev@gmail.com>
drivers/net/dc2114x.c

index 0cb54e3214bd75986b953ebab6b97c19e51bd1f8..dee699a59fde4ce485d75f4bac4f022cf0598773 100644 (file)
@@ -568,8 +568,8 @@ static void read_hw_addr(struct eth_device *dev, struct bd_info *bis)
 }
 
 static struct pci_device_id supported[] = {
-       { PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_TULIP_FAST },
-       { PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_21142 },
+       { PCI_DEVICE(PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_TULIP_FAST) },
+       { PCI_DEVICE(PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_21142) },
        { }
 };