drivers: net: Register Micrel ksz884x network devices in PCI device tree.
Subsystems (2)
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.
Signed-off-by Markus Lottmann <[email protected]>
--- drivers/net/ethernet/micrel/ksz884x.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/micrel/ksz884x.c +1 -0
@@ -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
From: Markus Lottmann <[email protected]>
Date: Wed, 14 May 2014 14:02:04 +0200
Quoted 4 lines
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 <[email protected]>
Applied to net-next, thanks.