diff options
author | Herton Ronaldo Krzesinski <herton@mandriva.com.br> | 2010-11-01 20:59:38 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-15 13:25:47 -0500 |
commit | 998606cfd75e7a8169ed0d324061a8d6bc60716a (patch) | |
tree | 42e8b6bfed2123a25dc3d938164ecf590e6a1ff5 /drivers | |
parent | 0bf198eb4d05a4662143e4a2e2a44fb592e2b177 (diff) |
rtl8187: remove uneeded setting of anaparam write
Usually you set RTL818X_CONFIG3_ANAPARAM_WRITE when you are going to
change/write ANAPARAM registers. But in current initialization of
RTL8187B there is a place where ANAPARAM_WRITE bit is set without any
ANAPARAM register being written, without reason, so remove it.
Signed-off-by: Herton Ronaldo Krzesinski <herton@mandriva.com.br>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: seno <senada@t-online.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/rtl818x/rtl8187_dev.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/net/wireless/rtl818x/rtl8187_dev.c b/drivers/net/wireless/rtl818x/rtl8187_dev.c index c0c75aa13db2..4448647d6cf6 100644 --- a/drivers/net/wireless/rtl818x/rtl8187_dev.c +++ b/drivers/net/wireless/rtl818x/rtl8187_dev.c | |||
@@ -814,14 +814,6 @@ static int rtl8187b_init_hw(struct ieee80211_hw *dev) | |||
814 | /* RFSW_CTRL register */ | 814 | /* RFSW_CTRL register */ |
815 | rtl818x_iowrite16_idx(priv, (__le16 *)0xFF72, 0x569A, 2); | 815 | rtl818x_iowrite16_idx(priv, (__le16 *)0xFF72, 0x569A, 2); |
816 | 816 | ||
817 | rtl818x_iowrite8(priv, &priv->map->EEPROM_CMD, | ||
818 | RTL818X_EEPROM_CMD_CONFIG); | ||
819 | reg = rtl818x_ioread8(priv, &priv->map->CONFIG3); | ||
820 | reg |= RTL818X_CONFIG3_ANAPARAM_WRITE; | ||
821 | rtl818x_iowrite8(priv, &priv->map->CONFIG3, reg); | ||
822 | rtl818x_iowrite8(priv, &priv->map->EEPROM_CMD, | ||
823 | RTL818X_EEPROM_CMD_NORMAL); | ||
824 | |||
825 | rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, 0x0480); | 817 | rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, 0x0480); |
826 | rtl818x_iowrite16(priv, &priv->map->RFPinsSelect, 0x2488); | 818 | rtl818x_iowrite16(priv, &priv->map->RFPinsSelect, 0x2488); |
827 | rtl818x_iowrite16(priv, &priv->map->RFPinsEnable, 0x1FFF); | 819 | rtl818x_iowrite16(priv, &priv->map->RFPinsEnable, 0x1FFF); |