iwlwifi: unregister LEDs if mac80211 registration fails
authorJohannes Berg <johannes.berg@intel.com>
Tue, 5 Jun 2012 07:38:35 +0000 (09:38 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 5 Jun 2012 18:27:30 +0000 (14:27 -0400)
commit0e1fa7ef25004b9c1a14147bce61c15c2f1c6744
tree835c3b2e8a8d6ec2e1522cc5ebf628513ab5316b
parentf69a23b795d6ee3673583146ed7efcbaaa5add18
iwlwifi: unregister LEDs if mac80211 registration fails

Otherwise the LEDs stick around and cause issues the
next time around since they're still there but not
really hooked up.

Cc: stable@kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-mac80211.c