Merge branch 'ethernet-missing-netdev-parent'
Florian Fainelli says:
====================
net: ethernet: Make sure we set dev->dev.parent
This patch series builds atop:
ec988ad78e
("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 <davem@davemloft.net>
This commit is contained in:
commit
1472d599a8
|
@ -704,6 +704,7 @@ ltq_etop_probe(struct platform_device *pdev)
|
||||||
priv->pldata = dev_get_platdata(&pdev->dev);
|
priv->pldata = dev_get_platdata(&pdev->dev);
|
||||||
priv->netdev = dev;
|
priv->netdev = dev;
|
||||||
spin_lock_init(&priv->lock);
|
spin_lock_init(&priv->lock);
|
||||||
|
SET_NETDEV_DEV(dev, &pdev->dev);
|
||||||
|
|
||||||
for (i = 0; i < MAX_DMA_CHAN; i++) {
|
for (i = 0; i < MAX_DMA_CHAN; i++) {
|
||||||
if (IS_TX(i))
|
if (IS_TX(i))
|
||||||
|
|
|
@ -1113,6 +1113,7 @@ static int cpmac_probe(struct platform_device *pdev)
|
||||||
if (!dev)
|
if (!dev)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
|
SET_NETDEV_DEV(dev, &pdev->dev);
|
||||||
platform_set_drvdata(pdev, dev);
|
platform_set_drvdata(pdev, dev);
|
||||||
priv = netdev_priv(dev);
|
priv = netdev_priv(dev);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue