Skip to content

Commit ae8ede6

Browse files
committed
arcnet: com20020-pci: set dev_port to the subdevice index
This patch sets the dev_port according to the index of the card. This can be used by udev to name the ports in userspace. Signed-off-by: Michael Grzeschik <[email protected]>
1 parent 27daf6e commit ae8ede6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/arcnet/com20020-pci.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ static int com20020pci_probe(struct pci_dev *pdev,
9696
ret = -ENOMEM;
9797
goto out_port;
9898
}
99+
dev->dev_port = i;
99100

100101
dev->netdev_ops = &com20020_netdev_ops;
101102

0 commit comments

Comments
 (0)