mirror of https://gitee.com/openkylin/linux.git
iwlwifi: mvm: unregister leds when registration failed
This was missing and prevented any further attempts to load the module. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
This commit is contained in:
parent
ad81f0545e
commit
b7327d89ae
|
@ -257,7 +257,11 @@ int iwl_mvm_mac_setup_register(struct iwl_mvm *mvm)
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
return ieee80211_register_hw(mvm->hw);
|
ret = ieee80211_register_hw(mvm->hw);
|
||||||
|
if (ret)
|
||||||
|
iwl_mvm_leds_exit(mvm);
|
||||||
|
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void iwl_mvm_mac_tx(struct ieee80211_hw *hw,
|
static void iwl_mvm_mac_tx(struct ieee80211_hw *hw,
|
||||||
|
|
Loading…
Reference in New Issue