net/mlx5: Make load_one() and unload_one() symmetric
authorParav Pandit <parav@mellanox.com>
Mon, 29 Jul 2019 21:12:58 +0000 (21:12 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 1 Aug 2019 18:14:25 +0000 (11:14 -0700)
commit0000a5f2507deef8668d23d6406e9d19ba371def
tree854555223e4ca8db1e0356ef227c71a5d11eead8
parent7761f9eef3f09f2f4c579313e0c536770b5ecff4
net/mlx5: Make load_one() and unload_one() symmetric

Currently mlx5_load_one() perform device registration using
mlx5_register_device(). But mlx5_unload_one() doesn't unregister.

Make them symmetric by doing device unregistration in
mlx5_unload_one().

Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/main.c