iwlwifi: mvm: avoid panics with thermal device usage
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 28 Feb 2016 08:15:08 +0000 (10:15 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 6 Mar 2016 20:01:32 +0000 (22:01 +0200)
commit91f66a3c672065a3aca387ca7e0028504bb8f457
tree1a52a183c41716c38b87ec89d5575223f92f45f3
parente5f91d91ac2e09f93f58ab8f6813d12f2b3afa03
iwlwifi: mvm: avoid panics with thermal device usage

Thermal zone device registration can fail, and in this case
we don't want to remove WiFi functionality. This is why the
thermal zone registration function is void, and the flows
continue even if the thermal zone device registration failed.
Same applies for the cooling device.

This means that we at least need to remember that the thermal
zone device didn't register properly and take the minimal
precautions to avoid panic'ing when we access it.

This was missing.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
drivers/net/wireless/intel/iwlwifi/mvm/tt.c