aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2014-06-20 11:22:00 -0400
committerJohn W. Linville <linville@tuxdriver.com>2014-06-20 14:13:45 -0400
commitbba4d409cbd322a0b78768a6dda013baed2b5a36 (patch)
treeb8359ff06c973846fe121c583c0aadf2ea69af7a
parente48b1790907c960b9d4f28cf7da9e0c25c5d02df (diff)
b43: remove leftover code from old devices support
Old devices (A-PHY or B-PHY) are supposed to be supported by b43legacy. We keep phy_a.c as it's needed for G-PHY which shares some design. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/b43/main.c9
-rw-r--r--drivers/net/wireless/b43/phy_a.h4
-rw-r--r--drivers/net/wireless/b43/phy_common.c3
3 files changed, 0 insertions, 16 deletions
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c
index 4b662d0abdd2..4164afa843e9 100644
--- a/drivers/net/wireless/b43/main.c
+++ b/drivers/net/wireless/b43/main.c
@@ -4306,15 +4306,6 @@ static int b43_phy_versioning(struct b43_wldev *dev)
4306 phy_type = (tmp & B43_PHYVER_TYPE) >> B43_PHYVER_TYPE_SHIFT; 4306 phy_type = (tmp & B43_PHYVER_TYPE) >> B43_PHYVER_TYPE_SHIFT;
4307 phy_rev = (tmp & B43_PHYVER_VERSION); 4307 phy_rev = (tmp & B43_PHYVER_VERSION);
4308 switch (phy_type) { 4308 switch (phy_type) {
4309 case B43_PHYTYPE_A:
4310 if (phy_rev >= 4)
4311 unsupported = 1;
4312 break;
4313 case B43_PHYTYPE_B:
4314 if (phy_rev != 2 && phy_rev != 4 && phy_rev != 6
4315 && phy_rev != 7)
4316 unsupported = 1;
4317 break;
4318 case B43_PHYTYPE_G: 4309 case B43_PHYTYPE_G:
4319 if (phy_rev > 9) 4310 if (phy_rev > 9)
4320 unsupported = 1; 4311 unsupported = 1;
diff --git a/drivers/net/wireless/b43/phy_a.h b/drivers/net/wireless/b43/phy_a.h
index 5cfaab7b16ee..f7d0d929a374 100644
--- a/drivers/net/wireless/b43/phy_a.h
+++ b/drivers/net/wireless/b43/phy_a.h
@@ -123,8 +123,4 @@ struct b43_phy_a {
123 */ 123 */
124void b43_phy_inita(struct b43_wldev *dev); 124void b43_phy_inita(struct b43_wldev *dev);
125 125
126
127struct b43_phy_operations;
128extern const struct b43_phy_operations b43_phyops_a;
129
130#endif /* LINUX_B43_PHY_A_H_ */ 126#endif /* LINUX_B43_PHY_A_H_ */
diff --git a/drivers/net/wireless/b43/phy_common.c b/drivers/net/wireless/b43/phy_common.c
index 2d05b5987168..ce486eeaf8e1 100644
--- a/drivers/net/wireless/b43/phy_common.c
+++ b/drivers/net/wireless/b43/phy_common.c
@@ -45,9 +45,6 @@ int b43_phy_allocate(struct b43_wldev *dev)
45 phy->ops = NULL; 45 phy->ops = NULL;
46 46
47 switch (phy->type) { 47 switch (phy->type) {
48 case B43_PHYTYPE_A:
49 phy->ops = &b43_phyops_a;
50 break;
51 case B43_PHYTYPE_G: 48 case B43_PHYTYPE_G:
52 phy->ops = &b43_phyops_g; 49 phy->ops = &b43_phyops_g;
53 break; 50 break;