1
0
Fork 0

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 <m.grzeschik@pengutronix.de>
hifive-unleashed-5.1
Michael Grzeschik 2015-03-20 15:22:24 +01:00
parent 27daf6ed5c
commit ae8ede6a0c
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@ static int com20020pci_probe(struct pci_dev *pdev,
ret = -ENOMEM;
goto out_port;
}
dev->dev_port = i;
dev->netdev_ops = &com20020_netdev_ops;