diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2013-04-04 15:41:06 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-04-08 15:28:38 -0400 |
commit | 9a84912c8f19b882ff20b8744c16bbf37484712f (patch) | |
tree | ca61aeeafaa4149d905950269aa4edb0253087b2 /drivers/net/wireless/rtlwifi | |
parent | 07b72bf334fcc12f73816866eaa44de42ca9894c (diff) |
rtlwifi: rtl8188ee: Fix allyesconfig build failures
An allyesconfig build of rtl8188ee yields the following duplicate entry points:
drivers/net/wireless/rtlwifi/rtl8188ee/built-in.o: In function `.rtl92c_phy_ap_calibrate':
(.text+0x21d14): multiple definition of `.rtl92c_phy_ap_calibrate'
drivers/net/wireless/rtlwifi/rtl8192c/built-in.o:(.text+0xb1e8): first defined here
drivers/net/wireless/rtlwifi/rtl8188ee/built-in.o: In function `rtl_hal_pwrseqcmdparsing':
(.opd+0xed0): multiple definition of `rtl_hal_pwrseqcmdparsing'
One of the routines is not used and can be deleted, the other is renamed.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtlwifi')
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8188ee/hw.c | 17 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8188ee/phy.c | 10 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8188ee/phy.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8188ee/pwrseqcmd.c | 20 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8188ee/pwrseqcmd.h | 6 |
5 files changed, 22 insertions, 32 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8188ee/hw.c b/drivers/net/wireless/rtlwifi/rtl8188ee/hw.c index 0f464d080df6..bcff49730a4e 100644 --- a/drivers/net/wireless/rtlwifi/rtl8188ee/hw.c +++ b/drivers/net/wireless/rtlwifi/rtl8188ee/hw.c | |||
@@ -814,11 +814,11 @@ static bool _rtl88ee_init_mac(struct ieee80211_hw *hw) | |||
814 | 814 | ||
815 | rtl_write_byte(rtlpriv, REG_RSV_CTRL, 0x00); | 815 | rtl_write_byte(rtlpriv, REG_RSV_CTRL, 0x00); |
816 | /* HW Power on sequence */ | 816 | /* HW Power on sequence */ |
817 | if (!rtl_hal_pwrseqcmdparsing(rtlpriv, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, | 817 | if (!rtl88_hal_pwrseqcmdparsing(rtlpriv, PWR_CUT_ALL_MSK, |
818 | PWR_INTF_PCI_MSK, | 818 | PWR_FAB_ALL_MSK, PWR_INTF_PCI_MSK, |
819 | Rtl8188E_NIC_ENABLE_FLOW)) { | 819 | Rtl8188E_NIC_ENABLE_FLOW)) { |
820 | RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, | 820 | RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, |
821 | "init MAC Fail as rtl_hal_pwrseqcmdparsing\n"); | 821 | "init MAC Fail as rtl88_hal_pwrseqcmdparsing\n"); |
822 | return false; | 822 | return false; |
823 | } | 823 | } |
824 | 824 | ||
@@ -1344,8 +1344,9 @@ static void _rtl88ee_poweroff_adapter(struct ieee80211_hw *hw) | |||
1344 | } | 1344 | } |
1345 | rtl_write_byte(rtlpriv, REG_PCIE_CTRL_REG+1, 0xFF); | 1345 | rtl_write_byte(rtlpriv, REG_PCIE_CTRL_REG+1, 0xFF); |
1346 | 1346 | ||
1347 | rtl_hal_pwrseqcmdparsing(rtlpriv, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, | 1347 | rtl88_hal_pwrseqcmdparsing(rtlpriv, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, |
1348 | PWR_INTF_PCI_MSK, Rtl8188E_NIC_LPS_ENTER_FLOW); | 1348 | PWR_INTF_PCI_MSK, |
1349 | Rtl8188E_NIC_LPS_ENTER_FLOW); | ||
1349 | 1350 | ||
1350 | rtl_write_byte(rtlpriv, REG_RF_CTRL, 0x00); | 1351 | rtl_write_byte(rtlpriv, REG_RF_CTRL, 0x00); |
1351 | 1352 | ||
@@ -1359,8 +1360,8 @@ static void _rtl88ee_poweroff_adapter(struct ieee80211_hw *hw) | |||
1359 | u1b_tmp = rtl_read_byte(rtlpriv, REG_32K_CTRL); | 1360 | u1b_tmp = rtl_read_byte(rtlpriv, REG_32K_CTRL); |
1360 | rtl_write_byte(rtlpriv, REG_32K_CTRL, (u1b_tmp & (~BIT(0)))); | 1361 | rtl_write_byte(rtlpriv, REG_32K_CTRL, (u1b_tmp & (~BIT(0)))); |
1361 | 1362 | ||
1362 | rtl_hal_pwrseqcmdparsing(rtlpriv, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, | 1363 | rtl88_hal_pwrseqcmdparsing(rtlpriv, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, |
1363 | PWR_INTF_PCI_MSK, Rtl8188E_NIC_DISABLE_FLOW); | 1364 | PWR_INTF_PCI_MSK, Rtl8188E_NIC_DISABLE_FLOW); |
1364 | 1365 | ||
1365 | u1b_tmp = rtl_read_byte(rtlpriv, REG_RSV_CTRL+1); | 1366 | u1b_tmp = rtl_read_byte(rtlpriv, REG_RSV_CTRL+1); |
1366 | rtl_write_byte(rtlpriv, REG_RSV_CTRL+1, (u1b_tmp & (~BIT(3)))); | 1367 | rtl_write_byte(rtlpriv, REG_RSV_CTRL+1, (u1b_tmp & (~BIT(3)))); |
diff --git a/drivers/net/wireless/rtlwifi/rtl8188ee/phy.c b/drivers/net/wireless/rtlwifi/rtl8188ee/phy.c index 224f80132223..e655c0473225 100644 --- a/drivers/net/wireless/rtlwifi/rtl8188ee/phy.c +++ b/drivers/net/wireless/rtlwifi/rtl8188ee/phy.c | |||
@@ -2001,16 +2001,6 @@ void rtl88e_phy_lc_calibrate(struct ieee80211_hw *hw) | |||
2001 | rtlphy->lck_inprogress = false; | 2001 | rtlphy->lck_inprogress = false; |
2002 | } | 2002 | } |
2003 | 2003 | ||
2004 | void rtl92c_phy_ap_calibrate(struct ieee80211_hw *hw, char delta) | ||
2005 | { | ||
2006 | struct rtl_priv *rtlpriv = rtl_priv(hw); | ||
2007 | struct rtl_phy *rtlphy = &(rtlpriv->phy); | ||
2008 | |||
2009 | if (rtlphy->apk_done) | ||
2010 | return; | ||
2011 | return; | ||
2012 | } | ||
2013 | |||
2014 | void rtl88e_phy_set_rfpath_switch(struct ieee80211_hw *hw, bool bmain) | 2004 | void rtl88e_phy_set_rfpath_switch(struct ieee80211_hw *hw, bool bmain) |
2015 | { | 2005 | { |
2016 | rfpath_switch(hw, bmain, false); | 2006 | rfpath_switch(hw, bmain, false); |
diff --git a/drivers/net/wireless/rtlwifi/rtl8188ee/phy.h b/drivers/net/wireless/rtlwifi/rtl8188ee/phy.h index 4f047c6ee096..f1acd6d27e44 100644 --- a/drivers/net/wireless/rtlwifi/rtl8188ee/phy.h +++ b/drivers/net/wireless/rtlwifi/rtl8188ee/phy.h | |||
@@ -225,7 +225,6 @@ extern void rtl88e_phy_set_bw_mode(struct ieee80211_hw *hw, | |||
225 | extern void rtl88e_phy_sw_chnl_callback(struct ieee80211_hw *hw); | 225 | extern void rtl88e_phy_sw_chnl_callback(struct ieee80211_hw *hw); |
226 | extern u8 rtl88e_phy_sw_chnl(struct ieee80211_hw *hw); | 226 | extern u8 rtl88e_phy_sw_chnl(struct ieee80211_hw *hw); |
227 | extern void rtl88e_phy_iq_calibrate(struct ieee80211_hw *hw, bool b_recovery); | 227 | extern void rtl88e_phy_iq_calibrate(struct ieee80211_hw *hw, bool b_recovery); |
228 | void rtl92c_phy_ap_calibrate(struct ieee80211_hw *hw, char delta); | ||
229 | void rtl88e_phy_lc_calibrate(struct ieee80211_hw *hw); | 228 | void rtl88e_phy_lc_calibrate(struct ieee80211_hw *hw); |
230 | void rtl88e_phy_set_rfpath_switch(struct ieee80211_hw *hw, bool bmain); | 229 | void rtl88e_phy_set_rfpath_switch(struct ieee80211_hw *hw, bool bmain); |
231 | bool rtl88e_phy_config_rf_with_headerfile(struct ieee80211_hw *hw, | 230 | bool rtl88e_phy_config_rf_with_headerfile(struct ieee80211_hw *hw, |
diff --git a/drivers/net/wireless/rtlwifi/rtl8188ee/pwrseqcmd.c b/drivers/net/wireless/rtlwifi/rtl8188ee/pwrseqcmd.c index 4798000ed53a..a9cfa13be3a8 100644 --- a/drivers/net/wireless/rtlwifi/rtl8188ee/pwrseqcmd.c +++ b/drivers/net/wireless/rtlwifi/rtl8188ee/pwrseqcmd.c | |||
@@ -39,9 +39,9 @@ | |||
39 | * 2011.07.07, added by Roger. | 39 | * 2011.07.07, added by Roger. |
40 | */ | 40 | */ |
41 | 41 | ||
42 | bool rtl_hal_pwrseqcmdparsing(struct rtl_priv *rtlpriv, u8 cut_version, | 42 | bool rtl88_hal_pwrseqcmdparsing(struct rtl_priv *rtlpriv, u8 cut_version, |
43 | u8 fab_version, u8 interface_type, | 43 | u8 fab_version, u8 interface_type, |
44 | struct wlan_pwr_cfg pwrcfgcmd[]) | 44 | struct wlan_pwr_cfg pwrcfgcmd[]) |
45 | { | 45 | { |
46 | struct wlan_pwr_cfg cmd = {0}; | 46 | struct wlan_pwr_cfg cmd = {0}; |
47 | bool polling_bit = false; | 47 | bool polling_bit = false; |
@@ -54,7 +54,7 @@ bool rtl_hal_pwrseqcmdparsing(struct rtl_priv *rtlpriv, u8 cut_version, | |||
54 | do { | 54 | do { |
55 | cmd = pwrcfgcmd[ary_idx]; | 55 | cmd = pwrcfgcmd[ary_idx]; |
56 | RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, | 56 | RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, |
57 | "rtl_hal_pwrseqcmdparsing(): offset(%#x), cut_msk(%#x), fab_msk(%#x)," | 57 | "rtl88_hal_pwrseqcmdparsing(): offset(%#x), cut_msk(%#x), fab_msk(%#x)," |
58 | "interface_msk(%#x), base(%#x), cmd(%#x), msk(%#x), val(%#x)\n", | 58 | "interface_msk(%#x), base(%#x), cmd(%#x), msk(%#x), val(%#x)\n", |
59 | GET_PWR_CFG_OFFSET(cmd), | 59 | GET_PWR_CFG_OFFSET(cmd), |
60 | GET_PWR_CFG_CUT_MASK(cmd), | 60 | GET_PWR_CFG_CUT_MASK(cmd), |
@@ -71,11 +71,11 @@ bool rtl_hal_pwrseqcmdparsing(struct rtl_priv *rtlpriv, u8 cut_version, | |||
71 | switch (GET_PWR_CFG_CMD(cmd)) { | 71 | switch (GET_PWR_CFG_CMD(cmd)) { |
72 | case PWR_CMD_READ: | 72 | case PWR_CMD_READ: |
73 | RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, | 73 | RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, |
74 | "rtl_hal_pwrseqcmdparsing(): PWR_CMD_READ\n"); | 74 | "rtl88_hal_pwrseqcmdparsing(): PWR_CMD_READ\n"); |
75 | break; | 75 | break; |
76 | case PWR_CMD_WRITE: { | 76 | case PWR_CMD_WRITE: { |
77 | RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, | 77 | RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, |
78 | "rtl_hal_pwrseqcmdparsing(): PWR_CMD_WRITE\n"); | 78 | "rtl88_hal_pwrseqcmdparsing(): PWR_CMD_WRITE\n"); |
79 | offset = GET_PWR_CFG_OFFSET(cmd); | 79 | offset = GET_PWR_CFG_OFFSET(cmd); |
80 | 80 | ||
81 | /*Read the val from system register*/ | 81 | /*Read the val from system register*/ |
@@ -90,7 +90,7 @@ bool rtl_hal_pwrseqcmdparsing(struct rtl_priv *rtlpriv, u8 cut_version, | |||
90 | break; | 90 | break; |
91 | case PWR_CMD_POLLING: | 91 | case PWR_CMD_POLLING: |
92 | RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, | 92 | RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, |
93 | "rtl_hal_pwrseqcmdparsing(): PWR_CMD_POLLING\n"); | 93 | "rtl88_hal_pwrseqcmdparsing(): PWR_CMD_POLLING\n"); |
94 | polling_bit = false; | 94 | polling_bit = false; |
95 | offset = GET_PWR_CFG_OFFSET(cmd); | 95 | offset = GET_PWR_CFG_OFFSET(cmd); |
96 | 96 | ||
@@ -115,7 +115,7 @@ bool rtl_hal_pwrseqcmdparsing(struct rtl_priv *rtlpriv, u8 cut_version, | |||
115 | break; | 115 | break; |
116 | case PWR_CMD_DELAY: | 116 | case PWR_CMD_DELAY: |
117 | RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, | 117 | RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, |
118 | "rtl_hal_pwrseqcmdparsing(): PWR_CMD_DELAY\n"); | 118 | "rtl88_hal_pwrseqcmdparsing(): PWR_CMD_DELAY\n"); |
119 | if (GET_PWR_CFG_VALUE(cmd) == PWRSEQ_DELAY_US) | 119 | if (GET_PWR_CFG_VALUE(cmd) == PWRSEQ_DELAY_US) |
120 | udelay(GET_PWR_CFG_OFFSET(cmd)); | 120 | udelay(GET_PWR_CFG_OFFSET(cmd)); |
121 | else | 121 | else |
@@ -123,12 +123,12 @@ bool rtl_hal_pwrseqcmdparsing(struct rtl_priv *rtlpriv, u8 cut_version, | |||
123 | break; | 123 | break; |
124 | case PWR_CMD_END: | 124 | case PWR_CMD_END: |
125 | RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, | 125 | RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, |
126 | "rtl_hal_pwrseqcmdparsing(): PWR_CMD_END\n"); | 126 | "rtl88_hal_pwrseqcmdparsing(): PWR_CMD_END\n"); |
127 | return true; | 127 | return true; |
128 | break; | 128 | break; |
129 | default: | 129 | default: |
130 | RT_ASSERT(false, | 130 | RT_ASSERT(false, |
131 | "rtl_hal_pwrseqcmdparsing(): Unknown CMD!!\n"); | 131 | "rtl88_hal_pwrseqcmdparsing(): Unknown CMD!!\n"); |
132 | break; | 132 | break; |
133 | } | 133 | } |
134 | } | 134 | } |
diff --git a/drivers/net/wireless/rtlwifi/rtl8188ee/pwrseqcmd.h b/drivers/net/wireless/rtlwifi/rtl8188ee/pwrseqcmd.h index 70456ab6526c..d9ae280bb1a2 100644 --- a/drivers/net/wireless/rtlwifi/rtl8188ee/pwrseqcmd.h +++ b/drivers/net/wireless/rtlwifi/rtl8188ee/pwrseqcmd.h | |||
@@ -90,8 +90,8 @@ struct wlan_pwr_cfg { | |||
90 | #define GET_PWR_CFG_MASK(__PWR) (__PWR.msk) | 90 | #define GET_PWR_CFG_MASK(__PWR) (__PWR.msk) |
91 | #define GET_PWR_CFG_VALUE(__PWR) (__PWR.value) | 91 | #define GET_PWR_CFG_VALUE(__PWR) (__PWR.value) |
92 | 92 | ||
93 | bool rtl_hal_pwrseqcmdparsing(struct rtl_priv *rtlpriv, u8 cut_version, | 93 | bool rtl88_hal_pwrseqcmdparsing(struct rtl_priv *rtlpriv, u8 cut_version, |
94 | u8 fab_version, u8 interface_type, | 94 | u8 fab_version, u8 interface_type, |
95 | struct wlan_pwr_cfg pwrcfgcmd[]); | 95 | struct wlan_pwr_cfg pwrcfgcmd[]); |
96 | 96 | ||
97 | #endif | 97 | #endif |