Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9dbccc30 authored by Markus Lottmann's avatar Markus Lottmann Committed by David S. Miller
Browse files

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: default avatarMarkus Lottmann <markus.lottmann1986@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fcd77db0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);