Skip to content

Commit 9dbccc3

Browse files
Markus Lottmanndavem330
authored andcommitted
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]> Signed-off-by: David S. Miller <[email protected]>
1 parent fcd77db commit 9dbccc3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/micrel/ksz884x.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7072,6 +7072,7 @@ static int pcidev_init(struct pci_dev *pdev, const struct pci_device_id *id)
70727072
dev = alloc_etherdev(sizeof(struct dev_priv));
70737073
if (!dev)
70747074
goto pcidev_init_reg_err;
7075+
SET_NETDEV_DEV(dev, &pdev->dev);
70757076
info->netdev[i] = dev;
70767077

70777078
priv = netdev_priv(dev);

0 commit comments

Comments
 (0)