]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitea861d3e93e697b8bc4278690b55a71bb7264285
tree854555223e4ca8db1e0356ef227c71a5d11eead8
parent11d3e790e45d82d6fcaeba336c8baafb15ed0737
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