Skip to content

Commit

Permalink
drivers: net: Register Micrel ksz884x network devices in PCI device t…
Browse files Browse the repository at this point in the history
…ree.

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>
  • Loading branch information
Markus Lottmann authored and David S. Miller committed May 15, 2014
1 parent fcd77db commit 9dbccc3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/micrel/ksz884x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9dbccc3

Please sign in to comment.