aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2019-01-29 07:23:05 -0500
committerLuca Coelho <luciano.coelho@intel.com>2019-02-20 13:47:57 -0500
commitcad7eb754dbd8e921e481b0a41ee0596016afa2f (patch)
tree277b89129e85c293cb627b9238c27dfb76f03975 /drivers/net/wireless/intel/iwlwifi/mvm/ops.c
parenta371bb646ff72f7ea13bdb920b2353b34f9d45b5 (diff)
iwlwifi: mvm: remove IWL_MVM_INIT_STATUS_REG_HW_INIT_COMPLETE
There's no point in this, we already do everything in a nested fashion, and if we didn't we'd already crash in iwl_mvm_leds_exit() etc. Just remove the bit. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/ops.c')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mvm/ops.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
index 0996c97c4b94..ba27dce4c2bb 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c
@@ -919,10 +919,7 @@ static void iwl_op_mode_mvm_stop(struct iwl_op_mode *op_mode)
919 919
920 iwl_mvm_thermal_exit(mvm); 920 iwl_mvm_thermal_exit(mvm);
921 921
922 if (mvm->init_status & IWL_MVM_INIT_STATUS_REG_HW_INIT_COMPLETE) { 922 ieee80211_unregister_hw(mvm->hw);
923 ieee80211_unregister_hw(mvm->hw);
924 mvm->init_status &= ~IWL_MVM_INIT_STATUS_REG_HW_INIT_COMPLETE;
925 }
926 923
927 kfree(mvm->scan_cmd); 924 kfree(mvm->scan_cmd);
928 kfree(mvm->mcast_filter_cmd); 925 kfree(mvm->mcast_filter_cmd);