drivers: net: Register Micrel ksz884x network devices in PCI device tree.
authorMarkus Lottmann <markus.lottmann1986@gmail.com>
Wed, 14 May 2014 12:02:04 +0000 (14:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 May 2014 19:43:50 +0000 (15:43 -0400)
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>
drivers/net/ethernet/micrel/ksz884x.c

index 4b9592c..c3898d3 100644 (file)
@@ -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);