Skip to content

Commit 9cecb13

Browse files
ffainellidavem330
authored andcommitted
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. Fixes: ec988ad ("phy: Don't increment MDIO bus refcount unless it's a different owner") Signed-off-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c458763 commit 9cecb13

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/lantiq_etop.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,7 @@ ltq_etop_probe(struct platform_device *pdev)
704704
priv->pldata = dev_get_platdata(&pdev->dev);
705705
priv->netdev = dev;
706706
spin_lock_init(&priv->lock);
707+
SET_NETDEV_DEV(dev, &pdev->dev);
707708

708709
for (i = 0; i < MAX_DMA_CHAN; i++) {
709710
if (IS_TX(i))

0 commit comments

Comments
 (0)