net: pxa168_eth: move SET_NETDEV_DEV a bit earlier
authorJisheng Zhang <jszhang@marvell.com>
Wed, 12 Nov 2014 11:08:47 +0000 (19:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Nov 2014 20:07:15 +0000 (15:07 -0500)
commit824ab78215c51429a2b0e17356a00a59e4e91a9a
treee1c54e00fde30a524e7ef6183d774c905c452135
parentc94f8f4156c6ea348bf1c54075ec84ade62ba7c2
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>
drivers/net/ethernet/marvell/pxa168_eth.c