summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Lottmann <markus.lottmann1986@gmail.com>2014-05-14 14:02:04 +0200
committerDavid S. Miller <davem@davemloft.net>2014-05-15 15:43:50 -0400
commit9dbccc30f3306114e1ca4a89da69be6d5f675782 (patch)
tree38d8d828eb61a7fd2151aff2fe3ed87360149d80
parentfcd77db07dd2b8d35e0db0d1209f2ce1bb05531e (diff)
downloadop-kernel-dev-9dbccc30f3306114e1ca4a89da69be6d5f675782.zip
op-kernel-dev-9dbccc30f3306114e1ca4a89da69be6d5f675782.tar.gz
drivers: net: Register Micrel ksz884x network devices in PCI device tree.
This unifies the behaviour with other network device drivers and allows for a matching of the PCI device path in UDEV rules. Signed-off-by: Markus Lottmann <markus.lottmann1986@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/micrel/ksz884x.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/micrel/ksz884x.c b/drivers/net/ethernet/micrel/ksz884x.c
index 4b9592c1..c3898d3 100644
--- a/drivers/net/ethernet/micrel/ksz884x.c
+++ b/drivers/net/ethernet/micrel/ksz884x.c
@@ -7072,6 +7072,7 @@ static int pcidev_init(struct pci_dev *pdev, const struct pci_device_id *id)
dev = alloc_etherdev(sizeof(struct dev_priv));
if (!dev)
goto pcidev_init_reg_err;
+ SET_NETDEV_DEV(dev, &pdev->dev);
info->netdev[i] = dev;
priv = netdev_priv(dev);
OpenPOWER on IntegriCloud