net/mlx4: Move devlink_register to be the last initialization command
authorLeon Romanovsky <leonro@nvidia.com>
Sat, 25 Sep 2021 11:22:49 +0000 (14:22 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Sep 2021 15:31:59 +0000 (16:31 +0100)
commit1e726859167cdeaedc9af412242c3b53fd6fd811
treeceb76a176f53e656bf570f24d155c1a0ffd40642
parent4beb0c241bfac5ff791a2d316ff6bd377730494d
net/mlx4: Move devlink_register to be the last initialization command

Refactor the code to make sure that devlink_register() is the last
command during initialization stage.

Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c