]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: fix build w/o CONFIG_THERMAL
authorJohannes Berg <johannes.berg@intel.com>
Wed, 18 Sep 2019 13:49:03 +0000 (16:49 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 19 Sep 2019 18:58:12 +0000 (21:58 +0300)
commitdb8a0775b77784f294b9a1646cff39a435e04638
tree84e074681b57c011df9e4d015f3273e252327ccc
parent5c96f59fff114a7fcc1b5b000c6abf5528c963b4
iwlwifi: mvm: fix build w/o CONFIG_THERMAL

Without CONFIG_THERMAL, the driver fails to link as it calls
iwl_mvm_send_temp_report_ths_cmd() unconditionally. Fix this
by making that function available, but do almost nothing but
send the empty firmware command to enable CT-kill reporting.

While at it, also fix that function itself to not error out
when the thermal zone hasn't been initialized, but instead
just send the empty firmware command in this case as well.

Fixes: c155c4e09b6a ("iwlwifi: mvm: use FW thermal monitoring regardless of CONFIG_THERMAL")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/intel/iwlwifi/mvm/tt.c