Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b7327d89 authored by Emmanuel Grumbach's avatar Emmanuel Grumbach Committed by Johannes Berg
Browse files

iwlwifi: mvm: unregister leds when registration failed



This was missing and prevented any further attempts
to load the module.

Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
parent ad81f054
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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,