net/mlx4_en: Fixed crash when port type is changed
authorAmir Vadai <amirv@mellanox.com>
Thu, 7 Nov 2013 09:08:30 +0000 (11:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Nov 2013 00:11:13 +0000 (19:11 -0500)
commit1ec4864b10171b0691ee196d7006ae56d2c153f2
treef0eb31f3ede41b22cf497cd14106224321555229
parent5600090eb138e302636dea7d44c63e3d7c890725
net/mlx4_en: Fixed crash when port type is changed

timecounter_init() was was called only after first potential
timecounter_read().
Moved mlx4_en_init_timestamp() before mlx4_en_init_netdev()

Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_main.c