diff options
author | Michael Buesch <mb@bu3sch.de> | 2008-09-02 07:00:34 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-09-05 16:17:49 -0400 |
commit | fb11137af83b7b66c7aab8dbc5f09d2c95684fed (patch) | |
tree | 08251ad486eb4c115f56ee4ddfb56a80c2d7c287 /drivers/net/wireless/b43/phy_common.c | |
parent | 7cb770729ba895f73253dfcd46c3fcba45d896f9 (diff) |
b43: Split PHY alloc and init
This splits the PHY allocation from the PHY init.
This is needed in order to properly support Analog handling.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/phy_common.c')
-rw-r--r-- | drivers/net/wireless/b43/phy_common.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/wireless/b43/phy_common.c b/drivers/net/wireless/b43/phy_common.c index b3762d8163c8..e12fca69a970 100644 --- a/drivers/net/wireless/b43/phy_common.c +++ b/drivers/net/wireless/b43/phy_common.c | |||
@@ -35,7 +35,7 @@ | |||
35 | #include "main.h" | 35 | #include "main.h" |
36 | 36 | ||
37 | 37 | ||
38 | int b43_phy_operations_setup(struct b43_wldev *dev) | 38 | int b43_phy_allocate(struct b43_wldev *dev) |
39 | { | 39 | { |
40 | struct b43_phy *phy = &(dev->phy); | 40 | struct b43_phy *phy = &(dev->phy); |
41 | int err; | 41 | int err; |
@@ -70,6 +70,12 @@ int b43_phy_operations_setup(struct b43_wldev *dev) | |||
70 | return err; | 70 | return err; |
71 | } | 71 | } |
72 | 72 | ||
73 | void b43_phy_free(struct b43_wldev *dev) | ||
74 | { | ||
75 | dev->phy.ops->free(dev); | ||
76 | dev->phy.ops = NULL; | ||
77 | } | ||
78 | |||
73 | int b43_phy_init(struct b43_wldev *dev) | 79 | int b43_phy_init(struct b43_wldev *dev) |
74 | { | 80 | { |
75 | struct b43_phy *phy = &dev->phy; | 81 | struct b43_phy *phy = &dev->phy; |