net/mlx4_en: Move register_netdev() to the end of initialization function
authorEugenia Emantayev <eugenia@mellanox.com>
Tue, 25 Jun 2013 09:09:31 +0000 (12:09 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jun 2013 23:29:39 +0000 (16:29 -0700)
commit4801ae70d80dc815997e3cb6bca1dfe36d1594fd
treee4b6f90539bc44fb7d36872e2bcff3bf54f9690d
parent6123db2ec529f1d1865298388e129a6aad2fae17
net/mlx4_en: Move register_netdev() to the end of initialization function

To avoid a race between the open function and everything that happens after
register_netdev() move it to be the last operation called.

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