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: Jisheng Zhang <jszhang@marvell.com> Acked-by: Antoine Tenart <antoine.tenart@free-electrons.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c94f8f4156
commit
824ab78215
|
@ -1540,8 +1540,8 @@ static int pxa168_eth_probe(struct platform_device *pdev)
|
|||
if (err)
|
||||
goto err_free_mdio;
|
||||
|
||||
pxa168_init_hw(pep);
|
||||
SET_NETDEV_DEV(dev, &pdev->dev);
|
||||
pxa168_init_hw(pep);
|
||||
err = register_netdev(dev);
|
||||
if (err)
|
||||
goto err_mdiobus;
|
||||
|
|
Loading…
Reference in New Issue