Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;