[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1400068924-13617-1-git-send-email-markus.lottmann1986@gmail.com>
Date: Wed, 14 May 2014 14:02:04 +0200
From: Markus Lottmann <markus.lottmann1986@...il.com>
To: davem@...emloft.net
Cc: netdev@...r.kernel.org,
Markus Lottmann <markus.lottmann1986@...il.com>
Subject: [PATCH] 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@...il.com>
---
drivers/net/ethernet/micrel/ksz884x.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/micrel/ksz884x.c b/drivers/net/ethernet/micrel/ksz884x.c
index 14ac0e2..023f2f9 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);
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists