Skip to contentSkip to conversation

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

PATCH Applied Markus Lottmann 2 participants 2 messages May 14, 2014 – May 15, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/net/ethernet/micrel/ksz884x.c |    1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/micrel/ksz884x.c +1 -0
index 14ac0e2..023f2f9 100644
@@ -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);
Signature · 1 line
1.7.10.4