mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-10 19:43:29 +00:00
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 <markus.lottmann1986@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
fcd77db07d
commit
9dbccc30f3
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user