From: Kevin Lo Date: Thu, 14 Nov 2013 05:53:44 +0000 (+0800) Subject: rt2x00: rt2800lib: no need to write RF register 3 twice for RT5592 X-Git-Tag: accepted/tizen/common/20141203.182822~719^2~482^2^2~80 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac0ef8139bc4f6493b6bb560bfeb31b883b7e8ae;p=platform%2Fkernel%2Flinux-arm64.git rt2x00: rt2800lib: no need to write RF register 3 twice for RT5592 In rt2800_init_rfcsr_5592(), there's no need to write RF register 3 twice. Signed-off-by: Kevin Lo Acked-by: Gertjan van Wingerde Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c index 7848b39..5ee5b29 100644 --- a/drivers/net/wireless/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/rt2x00/rt2800lib.c @@ -6610,7 +6610,6 @@ static void rt2800_init_rfcsr_5592(struct rt2x00_dev *rt2x00dev) rt2800_rfcsr_write(rt2x00dev, 1, 0x3F); rt2800_rfcsr_write(rt2x00dev, 3, 0x08); - rt2800_rfcsr_write(rt2x00dev, 3, 0x08); rt2800_rfcsr_write(rt2x00dev, 5, 0x10); rt2800_rfcsr_write(rt2x00dev, 6, 0xE4); rt2800_rfcsr_write(rt2x00dev, 7, 0x00);