summaryrefslogtreecommitdiffstats
path: root/drivers/net/arcnet
diff options
context:
space:
mode:
authorMichael Grzeschik <m.grzeschik@pengutronix.de>2015-03-20 15:22:24 +0100
committerMichael Grzeschik <m.grzeschik@pengutronix.de>2015-10-26 09:10:56 +0100
commitae8ede6a0cdcf3b21596f44dff30bbd02265bb41 (patch)
tree00c6a1a423af8070a8d65d08f9b8a1cd82195adb /drivers/net/arcnet
parent27daf6ed5c1fbeca9029c59c7f4f70a5c7e13531 (diff)
downloadlinux-ae8ede6a0cdcf3b21596f44dff30bbd02265bb41.tar.gz
linux-ae8ede6a0cdcf3b21596f44dff30bbd02265bb41.tar.bz2
linux-ae8ede6a0cdcf3b21596f44dff30bbd02265bb41.zip
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>
Diffstat (limited to 'drivers/net/arcnet')
-rw-r--r--drivers/net/arcnet/com20020-pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/arcnet/com20020-pci.c b/drivers/net/arcnet/com20020-pci.c
index a12bf83be750..e3b7c14e619f 100644
--- a/drivers/net/arcnet/com20020-pci.c
+++ b/drivers/net/arcnet/com20020-pci.c
@@ -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;