]> www.infradead.org Git - linux.git/commit
mlxsw: core_thermal: Make mlxsw_thermal_module_{init, fini} symmetric
authorIdo Schimmel <idosch@nvidia.com>
Tue, 30 Jul 2024 13:58:17 +0000 (15:58 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 1 Aug 2024 01:38:28 +0000 (18:38 -0700)
commitfb76ea1d4b12dab4ad1573f16b340e97174269b6
treea4ff6dd87be33110ab21b6a1ff9ec0b6a0ae3d48
parent73c18f9998fd1f172baaea26d266b1efa4e7b0c5
mlxsw: core_thermal: Make mlxsw_thermal_module_{init, fini} symmetric

mlxsw_thermal_module_fini() de-initializes the module's thermal zone,
but mlxsw_thermal_module_init() does not initialize it. Make both
functions symmetric by moving the initialization of the module's thermal
zone to mlxsw_thermal_module_init().

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Vadim Pasternak <vadimp@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Link: https://patch.msgid.link/a661ad468f8ad0d7d533d8334e4abf61dfe34342.1722345311.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/core_thermal.c