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.
Unified · Split
| @@ -704,6 +704,7 @@ ltq_etop_probe(struct platform_device *pdev) · 703 unmodified lines | ||
| 704 | 704 | priv->pldata = dev_get_platdata(&pdev->dev); |
| 705 | 705 | priv->netdev = dev; |
| 706 | 706 | spin_lock_init(&priv->lock); |
| 707 | + SET_NETDEV_DEV(dev, &pdev->dev); | |
| 707 | 708 | |
| 708 | 709 | for (i = 0; i < MAX_DMA_CHAN; i++) { |
| 709 | 710 | if (IS_TX(i)) |