Skip to content

Commit

Permalink
arcnet: com20020-pci: set dev_port to the subdevice index
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Grzeschik committed Oct 26, 2015
1 parent 27daf6e commit ae8ede6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/arcnet/com20020-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit ae8ede6

Please sign in to comment.