iwlwifi: unregister LEDs if mac80211 registration fails
authorJohannes Berg <johannes.berg@intel.com>
Tue, 5 Jun 2012 07:38:35 +0000 (09:38 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 19 Jun 2012 22:18:13 +0000 (23:18 +0100)
commitec2f2d36fb217a8750e4c82f91406f265174462f
tree34783a60f0d5acfdd70841acaa4ff1a34c678f80
parent0056a5555414ff62439e07deb3a40dd7f11156d6
iwlwifi: unregister LEDs if mac80211 registration fails

commit 0e1fa7ef25004b9c1a14147bce61c15c2f1c6744 upstream.

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

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
[bwh: Backported to 3.2: adjust filename]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/wireless/iwlwifi/iwl-agn.c