path: root/drivers/net/ethernet/lantiq_etop.c
diff options
authorDavid S. Miller <>2016-12-08 21:26:59 -0500
committerDavid S. Miller <>2016-12-08 21:26:59 -0500
commit1472d599a8d30429bf322fdc53bae3bec382308d (patch)
tree5d78835b264a00ab13a5911f88ccd944d13d9caa /drivers/net/ethernet/lantiq_etop.c
parentc4587631c7bad47c045e081d1553cd73a23be59a (diff)
parent5579f28cc8ba8a3b489cb042fcb30d331236c3bb (diff)
Merge branch 'ethernet-missing-netdev-parent'
Florian Fainelli says: ==================== net: ethernet: Make sure we set dev->dev.parent This patch series builds atop: ec988ad78ed6d184a7f4ca6b8e962b0e8f1de461 ("phy: Don't increment MDIO bus refcount unless it's a different owner") FMAN is the one that potentially needs patching as well (call SET_NETDEV_DEV), but there appears to be no way that init_phy is called right now, or there is not such an in-tree user. Madalin, can you comment on that? ==================== Signed-off-by: David S. Miller <>
Diffstat (limited to 'drivers/net/ethernet/lantiq_etop.c')
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/lantiq_etop.c b/drivers/net/ethernet/lantiq_etop.c
index 91e09d68b7e2..a167fd7ee13e 100644
--- a/drivers/net/ethernet/lantiq_etop.c
+++ b/drivers/net/ethernet/lantiq_etop.c
@@ -704,6 +704,7 @@ ltq_etop_probe(struct platform_device *pdev)
priv->pldata = dev_get_platdata(&pdev->dev);
priv->netdev = dev;
+ SET_NETDEV_DEV(dev, &pdev->dev);
for (i = 0; i < MAX_DMA_CHAN; i++) {
if (IS_TX(i))