Skip to content

Commit

Permalink
iwlwifi: mvm: unregister leds when registration failed
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Emmanuel Grumbach authored and Johannes Berg committed Jul 16, 2013
1 parent ad81f05 commit b7327d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/net/wireless/iwlwifi/mvm/mac80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,11 @@ int iwl_mvm_mac_setup_register(struct iwl_mvm *mvm)
if (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,
Expand Down

0 comments on commit b7327d8

Please sign in to comment.