mlxsw: core: Push code doing params register/unregister into separate helpers
authorJiri Pirko <jiri@nvidia.com>
Tue, 15 Sep 2020 08:40:53 +0000 (11:40 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Sep 2020 22:57:16 +0000 (15:57 -0700)
commit1fb0a49562743ae6d9715d8497c33325007a19c8
tree34980df951a8d9e506a19950afce377702400360
parentb79cb787ac70adcbef0f3680365a588380eedb6f
mlxsw: core: Push code doing params register/unregister into separate helpers

Extract the code calling params register/unregister driver ops into
separate functions. Call publish/unpublish unconditionally.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core.c