Commit 824ab782 authored by Jisheng Zhang's avatar Jisheng Zhang Committed by David S. Miller

net: pxa168_eth: move SET_NETDEV_DEV a bit earlier

This is to ensure the net_device's dev.parent is set before we used it
in dma_zalloc_coherent() from init_hash_table().
Signed-off-by: default avatarJisheng Zhang <jszhang@marvell.com>
Acked-by: default avatarAntoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c94f8f41
...@@ -1540,8 +1540,8 @@ static int pxa168_eth_probe(struct platform_device *pdev) ...@@ -1540,8 +1540,8 @@ static int pxa168_eth_probe(struct platform_device *pdev)
if (err) if (err)
goto err_free_mdio; goto err_free_mdio;
pxa168_init_hw(pep);
SET_NETDEV_DEV(dev, &pdev->dev); SET_NETDEV_DEV(dev, &pdev->dev);
pxa168_init_hw(pep);
err = register_netdev(dev); err = register_netdev(dev);
if (err) if (err)
goto err_mdiobus; goto err_mdiobus;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment