diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2011-07-06 09:45:28 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-07-08 11:11:21 -0400 |
commit | 74abacb6b5b91141eb8963faa2f22b3f1bd7c68d (patch) | |
tree | 22bef5fa0551da97250f20fcc62bf11d6404a11c /drivers/net/wireless/b43/main.c | |
parent | 42c9a458965da2b74e772054fdc4bcdec0351da8 (diff) |
b43: bus: add helpers for getting/setting wldev from/in bus core
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
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.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c index f80a53d23d71..f0b9dd14ea2b 100644 --- a/drivers/net/wireless/b43/main.c +++ b/drivers/net/wireless/b43/main.c | |||
@@ -5000,13 +5000,13 @@ static void b43_one_core_detach(struct b43_bus_dev *dev) | |||
5000 | /* Do not cancel ieee80211-workqueue based work here. | 5000 | /* Do not cancel ieee80211-workqueue based work here. |
5001 | * See comment in b43_remove(). */ | 5001 | * See comment in b43_remove(). */ |
5002 | 5002 | ||
5003 | wldev = ssb_get_drvdata(dev->sdev); | 5003 | wldev = b43_bus_get_wldev(dev); |
5004 | wl = wldev->wl; | 5004 | wl = wldev->wl; |
5005 | b43_debugfs_remove_device(wldev); | 5005 | b43_debugfs_remove_device(wldev); |
5006 | b43_wireless_core_detach(wldev); | 5006 | b43_wireless_core_detach(wldev); |
5007 | list_del(&wldev->list); | 5007 | list_del(&wldev->list); |
5008 | wl->nr_devs--; | 5008 | wl->nr_devs--; |
5009 | ssb_set_drvdata(dev->sdev, NULL); | 5009 | b43_bus_set_wldev(dev, NULL); |
5010 | kfree(wldev); | 5010 | kfree(wldev); |
5011 | } | 5011 | } |
5012 | 5012 | ||
@@ -5032,7 +5032,7 @@ static int b43_one_core_attach(struct b43_bus_dev *dev, struct b43_wl *wl) | |||
5032 | 5032 | ||
5033 | list_add(&wldev->list, &wl->devlist); | 5033 | list_add(&wldev->list, &wl->devlist); |
5034 | wl->nr_devs++; | 5034 | wl->nr_devs++; |
5035 | ssb_set_drvdata(dev->sdev, wldev); | 5035 | b43_bus_set_wldev(dev, wldev); |
5036 | b43_debugfs_add_device(wldev); | 5036 | b43_debugfs_add_device(wldev); |
5037 | 5037 | ||
5038 | out: | 5038 | out: |