aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGertjan van Wingerde <gwingerde@gmail.com>2012-09-16 16:29:51 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-09-24 14:59:12 -0400
commit59d1287428ed93e2fead507b5be9a5ee453b8ebf (patch)
tree421c29289937cdca7d13e325e4cd48ae36c91f92 /drivers
parentd961e447a616c83ab7a7022bd98d60ec086f07ab (diff)
rt2x00: rt2800lib - code cleanup.
Move RT3290 BBP initialization sequence (part) to the right place in the code. This is just a code style change, no functional changes. Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com> Acked-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/rt2x00/rt2800lib.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c
index 17b8a281094f..37f64ba83221 100644
--- a/drivers/net/wireless/rt2x00/rt2800lib.c
+++ b/drivers/net/wireless/rt2x00/rt2800lib.c
@@ -3535,6 +3535,11 @@ static int rt2800_init_bbp(struct rt2x00_dev *rt2x00dev)
3535 } else if (rt2800_is_305x_soc(rt2x00dev)) { 3535 } else if (rt2800_is_305x_soc(rt2x00dev)) {
3536 rt2800_bbp_write(rt2x00dev, 78, 0x0e); 3536 rt2800_bbp_write(rt2x00dev, 78, 0x0e);
3537 rt2800_bbp_write(rt2x00dev, 80, 0x08); 3537 rt2800_bbp_write(rt2x00dev, 80, 0x08);
3538 } else if (rt2x00_rt(rt2x00dev, RT3290)) {
3539 rt2800_bbp_write(rt2x00dev, 74, 0x0b);
3540 rt2800_bbp_write(rt2x00dev, 79, 0x18);
3541 rt2800_bbp_write(rt2x00dev, 80, 0x09);
3542 rt2800_bbp_write(rt2x00dev, 81, 0x33);
3538 } else if (rt2x00_rt(rt2x00dev, RT3352)) { 3543 } else if (rt2x00_rt(rt2x00dev, RT3352)) {
3539 rt2800_bbp_write(rt2x00dev, 78, 0x0e); 3544 rt2800_bbp_write(rt2x00dev, 78, 0x0e);
3540 rt2800_bbp_write(rt2x00dev, 80, 0x08); 3545 rt2800_bbp_write(rt2x00dev, 80, 0x08);
@@ -3543,13 +3548,6 @@ static int rt2800_init_bbp(struct rt2x00_dev *rt2x00dev)
3543 rt2800_bbp_write(rt2x00dev, 81, 0x37); 3548 rt2800_bbp_write(rt2x00dev, 81, 0x37);
3544 } 3549 }
3545 3550
3546 if (rt2x00_rt(rt2x00dev, RT3290)) {
3547 rt2800_bbp_write(rt2x00dev, 74, 0x0b);
3548 rt2800_bbp_write(rt2x00dev, 79, 0x18);
3549 rt2800_bbp_write(rt2x00dev, 80, 0x09);
3550 rt2800_bbp_write(rt2x00dev, 81, 0x33);
3551 }
3552
3553 rt2800_bbp_write(rt2x00dev, 82, 0x62); 3551 rt2800_bbp_write(rt2x00dev, 82, 0x62);
3554 if (rt2x00_rt(rt2x00dev, RT3290) || 3552 if (rt2x00_rt(rt2x00dev, RT3290) ||
3555 rt2x00_rt(rt2x00dev, RT5390) || 3553 rt2x00_rt(rt2x00dev, RT5390) ||