aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorJisheng Zhang <jszhang@marvell.com>2014-11-12 06:08:47 -0500
committerDavid S. Miller <davem@davemloft.net>2014-11-12 15:07:15 -0500
commit824ab78215c51429a2b0e17356a00a59e4e91a9a (patch)
treee1c54e00fde30a524e7ef6183d774c905c452135 /drivers/net
parentc94f8f4156c6ea348bf1c54075ec84ade62ba7c2 (diff)
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>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/marvell/pxa168_eth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/marvell/pxa168_eth.c b/drivers/net/ethernet/marvell/pxa168_eth.c
index 21ddecef151e..38f7ceee77d2 100644
--- a/drivers/net/ethernet/marvell/pxa168_eth.c
+++ b/drivers/net/ethernet/marvell/pxa168_eth.c
@@ -1540,8 +1540,8 @@ static int pxa168_eth_probe(struct platform_device *pdev)
1540 if (err) 1540 if (err)
1541 goto err_free_mdio; 1541 goto err_free_mdio;
1542 1542
1543 pxa168_init_hw(pep);
1544 SET_NETDEV_DEV(dev, &pdev->dev); 1543 SET_NETDEV_DEV(dev, &pdev->dev);
1544 pxa168_init_hw(pep);
1545 err = register_netdev(dev); 1545 err = register_netdev(dev);
1546 if (err) 1546 if (err)
1547 goto err_mdiobus; 1547 goto err_mdiobus;