Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae8ede6a authored by Michael Grzeschik's avatar Michael Grzeschik
Browse files

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: default avatarMichael Grzeschik <m.grzeschik@pengutronix.de>
parent 27daf6ed
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;