rtlwifi: rtl8188ee: Fix allyesconfig build failures
authorLarry Finger <Larry.Finger@lwfinger.net>
Thu, 4 Apr 2013 19:41:06 +0000 (14:41 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 8 Apr 2013 19:28:38 +0000 (15:28 -0400)
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>
drivers/net/wireless/rtlwifi/rtl8188ee/hw.c
drivers/net/wireless/rtlwifi/rtl8188ee/phy.c
drivers/net/wireless/rtlwifi/rtl8188ee/phy.h
drivers/net/wireless/rtlwifi/rtl8188ee/pwrseqcmd.c
drivers/net/wireless/rtlwifi/rtl8188ee/pwrseqcmd.h

index 0f464d080df6fb1e8a3e31e15ee1df6895f75b02..bcff49730a4ece4e817b965f4670a622022399b5 100644 (file)
@@ -814,11 +814,11 @@ static bool _rtl88ee_init_mac(struct ieee80211_hw *hw)
 
        rtl_write_byte(rtlpriv, REG_RSV_CTRL, 0x00);
        /* HW Power on sequence */
-       if (!rtl_hal_pwrseqcmdparsing(rtlpriv, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK,
-                                     PWR_INTF_PCI_MSK,
-                                     Rtl8188E_NIC_ENABLE_FLOW)) {
+       if (!rtl88_hal_pwrseqcmdparsing(rtlpriv, PWR_CUT_ALL_MSK,
+                                       PWR_FAB_ALL_MSK, PWR_INTF_PCI_MSK,
+                                       Rtl8188E_NIC_ENABLE_FLOW)) {
                RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD,
-                        "init MAC Fail as rtl_hal_pwrseqcmdparsing\n");
+                        "init MAC Fail as rtl88_hal_pwrseqcmdparsing\n");
                return false;
        }
 
@@ -1344,8 +1344,9 @@ static void _rtl88ee_poweroff_adapter(struct ieee80211_hw *hw)
        }
        rtl_write_byte(rtlpriv, REG_PCIE_CTRL_REG+1, 0xFF);
 
-       rtl_hal_pwrseqcmdparsing(rtlpriv, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK,
-                                PWR_INTF_PCI_MSK, Rtl8188E_NIC_LPS_ENTER_FLOW);
+       rtl88_hal_pwrseqcmdparsing(rtlpriv, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK,
+                                  PWR_INTF_PCI_MSK,
+                                  Rtl8188E_NIC_LPS_ENTER_FLOW);
 
        rtl_write_byte(rtlpriv, REG_RF_CTRL, 0x00);
 
@@ -1359,8 +1360,8 @@ static void _rtl88ee_poweroff_adapter(struct ieee80211_hw *hw)
        u1b_tmp = rtl_read_byte(rtlpriv, REG_32K_CTRL);
        rtl_write_byte(rtlpriv, REG_32K_CTRL, (u1b_tmp & (~BIT(0))));
 
-       rtl_hal_pwrseqcmdparsing(rtlpriv, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK,
-                                PWR_INTF_PCI_MSK, Rtl8188E_NIC_DISABLE_FLOW);
+       rtl88_hal_pwrseqcmdparsing(rtlpriv, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK,
+                                  PWR_INTF_PCI_MSK, Rtl8188E_NIC_DISABLE_FLOW);
 
        u1b_tmp = rtl_read_byte(rtlpriv, REG_RSV_CTRL+1);
        rtl_write_byte(rtlpriv, REG_RSV_CTRL+1, (u1b_tmp & (~BIT(3))));
index 224f80132223b4e4e401d800e2add4a6d0321434..e655c04732251f18ee1121625df732ab8b8d8096 100644 (file)
@@ -2001,16 +2001,6 @@ void rtl88e_phy_lc_calibrate(struct ieee80211_hw *hw)
        rtlphy->lck_inprogress = false;
 }
 
-void rtl92c_phy_ap_calibrate(struct ieee80211_hw *hw, char delta)
-{
-       struct rtl_priv *rtlpriv = rtl_priv(hw);
-       struct rtl_phy *rtlphy = &(rtlpriv->phy);
-
-       if (rtlphy->apk_done)
-               return;
-       return;
-}
-
 void rtl88e_phy_set_rfpath_switch(struct ieee80211_hw *hw, bool bmain)
 {
        rfpath_switch(hw, bmain, false);
index 4f047c6ee09638d4ea94346e3a7d3393af56d8e8..f1acd6d27e444ca4fac956d14190de873ef15d06 100644 (file)
@@ -225,7 +225,6 @@ extern void rtl88e_phy_set_bw_mode(struct ieee80211_hw *hw,
 extern void rtl88e_phy_sw_chnl_callback(struct ieee80211_hw *hw);
 extern u8 rtl88e_phy_sw_chnl(struct ieee80211_hw *hw);
 extern void rtl88e_phy_iq_calibrate(struct ieee80211_hw *hw, bool b_recovery);
-void rtl92c_phy_ap_calibrate(struct ieee80211_hw *hw, char delta);
 void rtl88e_phy_lc_calibrate(struct ieee80211_hw *hw);
 void rtl88e_phy_set_rfpath_switch(struct ieee80211_hw *hw, bool bmain);
 bool rtl88e_phy_config_rf_with_headerfile(struct ieee80211_hw *hw,
index 4798000ed53ac4506f91cd352b9b97d7a0311021..a9cfa13be3a8886765c00a0179b2f47e9137273e 100644 (file)
@@ -39,9 +39,9 @@
  *     2011.07.07, added by Roger.
  */
 
-bool rtl_hal_pwrseqcmdparsing(struct rtl_priv *rtlpriv, u8 cut_version,
-                             u8 fab_version, u8 interface_type,
-                             struct wlan_pwr_cfg pwrcfgcmd[])
+bool rtl88_hal_pwrseqcmdparsing(struct rtl_priv *rtlpriv, u8 cut_version,
+                               u8 fab_version, u8 interface_type,
+                               struct wlan_pwr_cfg pwrcfgcmd[])
 {
        struct wlan_pwr_cfg cmd = {0};
        bool polling_bit = false;
@@ -54,7 +54,7 @@ bool rtl_hal_pwrseqcmdparsing(struct rtl_priv *rtlpriv, u8 cut_version,
        do {
                cmd = pwrcfgcmd[ary_idx];
                RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE,
-                        "rtl_hal_pwrseqcmdparsing(): offset(%#x), cut_msk(%#x), fab_msk(%#x),"
+                        "rtl88_hal_pwrseqcmdparsing(): offset(%#x), cut_msk(%#x), fab_msk(%#x),"
                         "interface_msk(%#x), base(%#x), cmd(%#x), msk(%#x), val(%#x)\n",
                         GET_PWR_CFG_OFFSET(cmd),
                         GET_PWR_CFG_CUT_MASK(cmd),
@@ -71,11 +71,11 @@ bool rtl_hal_pwrseqcmdparsing(struct rtl_priv *rtlpriv, u8 cut_version,
                        switch (GET_PWR_CFG_CMD(cmd)) {
                        case PWR_CMD_READ:
                                RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE,
-                                        "rtl_hal_pwrseqcmdparsing(): PWR_CMD_READ\n");
+                                        "rtl88_hal_pwrseqcmdparsing(): PWR_CMD_READ\n");
                                break;
                        case PWR_CMD_WRITE: {
                                RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE,
-                                        "rtl_hal_pwrseqcmdparsing(): PWR_CMD_WRITE\n");
+                                        "rtl88_hal_pwrseqcmdparsing(): PWR_CMD_WRITE\n");
                                offset = GET_PWR_CFG_OFFSET(cmd);
 
                                        /*Read the val from system register*/
@@ -90,7 +90,7 @@ bool rtl_hal_pwrseqcmdparsing(struct rtl_priv *rtlpriv, u8 cut_version,
                                break;
                        case PWR_CMD_POLLING:
                                RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE,
-                                        "rtl_hal_pwrseqcmdparsing(): PWR_CMD_POLLING\n");
+                                        "rtl88_hal_pwrseqcmdparsing(): PWR_CMD_POLLING\n");
                                polling_bit = false;
                                offset = GET_PWR_CFG_OFFSET(cmd);
 
@@ -115,7 +115,7 @@ bool rtl_hal_pwrseqcmdparsing(struct rtl_priv *rtlpriv, u8 cut_version,
                                break;
                        case PWR_CMD_DELAY:
                                RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE,
-                                        "rtl_hal_pwrseqcmdparsing(): PWR_CMD_DELAY\n");
+                                        "rtl88_hal_pwrseqcmdparsing(): PWR_CMD_DELAY\n");
                                if (GET_PWR_CFG_VALUE(cmd) == PWRSEQ_DELAY_US)
                                        udelay(GET_PWR_CFG_OFFSET(cmd));
                                else
@@ -123,12 +123,12 @@ bool rtl_hal_pwrseqcmdparsing(struct rtl_priv *rtlpriv, u8 cut_version,
                                break;
                        case PWR_CMD_END:
                                RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE,
-                                        "rtl_hal_pwrseqcmdparsing(): PWR_CMD_END\n");
+                                        "rtl88_hal_pwrseqcmdparsing(): PWR_CMD_END\n");
                                return true;
                                break;
                        default:
                                RT_ASSERT(false,
-                                         "rtl_hal_pwrseqcmdparsing(): Unknown CMD!!\n");
+                                         "rtl88_hal_pwrseqcmdparsing(): Unknown CMD!!\n");
                                break;
                        }
                }
index 70456ab6526c0f07d50afe424acc25652d9339ee..d9ae280bb1a2ba7cce6e87a014843b7c0acf35da 100644 (file)
@@ -90,8 +90,8 @@ struct wlan_pwr_cfg {
 #define        GET_PWR_CFG_MASK(__PWR)         (__PWR.msk)
 #define        GET_PWR_CFG_VALUE(__PWR)        (__PWR.value)
 
-bool rtl_hal_pwrseqcmdparsing(struct rtl_priv *rtlpriv, u8 cut_version,
-                             u8 fab_version, u8 interface_type,
-                             struct wlan_pwr_cfg pwrcfgcmd[]);
+bool rtl88_hal_pwrseqcmdparsing(struct rtl_priv *rtlpriv, u8 cut_version,
+                               u8 fab_version, u8 interface_type,
+                               struct wlan_pwr_cfg pwrcfgcmd[]);
 
 #endif