summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/main.c
diff options
context:
space:
mode:
authorAlbert Herranz <albert_herranz@yahoo.es>2009-09-16 00:26:19 +0200
committerJohn W. Linville <linville@tuxdriver.com>2009-09-23 17:35:45 +0200
commit82905ace22614fe220875fc5748b1afbac868a76 (patch)
treec6b896a3c1a1fa917279750604a0421086545827 /drivers/net/wireless/b43/main.c
parentb43: Don't abuse wl->current_dev in the led work (diff)
downloadlinux-82905ace22614fe220875fc5748b1afbac868a76.tar.xz
linux-82905ace22614fe220875fc5748b1afbac868a76.zip
b43: fix build error if !CONFIG_B43_LEDS
Fix the following build error when CONFIG_B43_LEDS is not selected: drivers/net/wireless/b43/main.c: In function 'b43_remove': drivers/net/wireless/b43/main.c:4990: error: 'struct b43_leds' has no member named 'stop' drivers/net/wireless/b43/main.c:4991: error: 'struct b43_leds' has no member named 'work' make[4]: *** [drivers/net/wireless/b43/main.o] Error 1 Signed-off-by: Albert Herranz <albert_herranz@yahoo.es> Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/main.c')
-rw-r--r--drivers/net/wireless/b43/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c
index a8840ef63770..6c0ea214a82e 100644
--- a/drivers/net/wireless/b43/main.c
+++ b/drivers/net/wireless/b43/main.c
@@ -4987,8 +4987,7 @@ static void b43_remove(struct ssb_device *dev)
* might have modified it. Restoring is important, so the networking
* stack can properly free resources. */
wl->hw->queues = wl->mac80211_initially_registered_queues;
- wl->leds.stop = 1;
- cancel_work_sync(&wl->leds.work);
+ b43_leds_stop(wldev);
ieee80211_unregister_hw(wl->hw);
}