History

net: ethernet: lantiq_etop: Call SET_NETDEV_DEV()

The Lantiq Etop driver calls into PHYLIB which now checks for net_device->dev.parent, so make sure we do set it before calling into any MDIO/PHYLIB related function.

Florian Fainelli committed 9 years ago

Commit 9cecb131 parent c4587631 file · +1 −0Browse files

Unified · Split

drivers/net/ethernet/lantiq_etop.c+1−0
@@ -704,6 +704,7 @@ ltq_etop_probe(struct platform_device *pdev) · 703 unmodified lines
704 priv->pldata = dev_get_platdata(&pdev->dev);704 priv->pldata = dev_get_platdata(&pdev->dev);
705 priv->netdev = dev;705 priv->netdev = dev;
706 spin_lock_init(&priv->lock);706 spin_lock_init(&priv->lock);
707 SET_NETDEV_DEV(dev, &pdev->dev);
707 708
708 for (i = 0; i < MAX_DMA_CHAN; i++) {709 for (i = 0; i < MAX_DMA_CHAN; i++) {
709 if (IS_TX(i))710 if (IS_TX(i))