summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2020-06-20 17:36:42 +0200
committerMarek Vasut <[email protected]>2020-07-25 11:24:01 +0200
commit75e375b0a979176b72b0355534e03a863c19d95a (patch)
treead795278d8e08ed5fb270bc2f37cf84cf8bc08c6
parentada61f1ee2a4eaa1b29d699b5ba940483171df8a (diff)
net: dc2114x: 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 <[email protected]> Cc: Joe Hershberger <[email protected]> Cc: Ramon Fried <[email protected]>
-rw-r--r--drivers/net/dc2114x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/dc2114x.c b/drivers/net/dc2114x.c
index 0cb54e3214b..dee699a59fd 100644
--- a/drivers/net/dc2114x.c
+++ b/drivers/net/dc2114x.c
@@ -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) },
{ }
};