aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/tables_lpphy.c
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2011-05-17 20:06:41 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-06-01 15:10:57 -0400
commitc244e08c7aa30abea3c29ff17a40f4b0a58a7913 (patch)
tree96fc5fc9cca78d2aecf204e7ecc13f05e0702eb0 /drivers/net/wireless/b43/tables_lpphy.c
parenta18c715e63505850edd2b69ded5373d6d464cd80 (diff)
b43: bus: abstract chip info
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/tables_lpphy.c')
-rw-r--r--drivers/net/wireless/b43/tables_lpphy.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/b43/tables_lpphy.c b/drivers/net/wireless/b43/tables_lpphy.c
index aa117550e6c0..6748c5a196e9 100644
--- a/drivers/net/wireless/b43/tables_lpphy.c
+++ b/drivers/net/wireless/b43/tables_lpphy.c
@@ -2304,7 +2304,6 @@ void lpphy_rev0_1_table_init(struct b43_wldev *dev)
2304 2304
2305void lpphy_rev2plus_table_init(struct b43_wldev *dev) 2305void lpphy_rev2plus_table_init(struct b43_wldev *dev)
2306{ 2306{
2307 struct ssb_bus *bus = dev->sdev->bus;
2308 int i; 2307 int i;
2309 2308
2310 B43_WARN_ON(dev->phy.rev < 2); 2309 B43_WARN_ON(dev->phy.rev < 2);
@@ -2341,7 +2340,7 @@ void lpphy_rev2plus_table_init(struct b43_wldev *dev)
2341 b43_lptab_write_bulk(dev, B43_LPTAB32(10, 0), 2340 b43_lptab_write_bulk(dev, B43_LPTAB32(10, 0),
2342 ARRAY_SIZE(lpphy_papd_mult_table), lpphy_papd_mult_table); 2341 ARRAY_SIZE(lpphy_papd_mult_table), lpphy_papd_mult_table);
2343 2342
2344 if ((bus->chip_id == 0x4325) && (bus->chip_rev == 0)) { 2343 if ((dev->dev->chip_id == 0x4325) && (dev->dev->chip_rev == 0)) {
2345 b43_lptab_write_bulk(dev, B43_LPTAB32(13, 0), 2344 b43_lptab_write_bulk(dev, B43_LPTAB32(13, 0),
2346 ARRAY_SIZE(lpphy_a0_gain_idx_table), lpphy_a0_gain_idx_table); 2345 ARRAY_SIZE(lpphy_a0_gain_idx_table), lpphy_a0_gain_idx_table);
2347 b43_lptab_write_bulk(dev, B43_LPTAB16(14, 0), 2346 b43_lptab_write_bulk(dev, B43_LPTAB16(14, 0),