diff mbox

drivers: net: Register Micrel ksz884x network devices in PCI device tree.

Message ID 1400068924-13617-1-git-send-email-markus.lottmann1986@gmail.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Markus Lottmann May 14, 2014, 12:02 p.m. UTC
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>
---
 drivers/net/ethernet/micrel/ksz884x.c |    1 +
 1 file changed, 1 insertion(+)

Comments

David Miller May 15, 2014, 7:44 p.m. UTC | #1
From: Markus Lottmann <markus.lottmann1986@gmail.com>
Date: Wed, 14 May 2014 14:02:04 +0200

> 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>

Applied to net-next, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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);