rtlwifi: rtl8192ce: rtl8192cu: Fix multiple def errors for allyesconfig build
As noted by Stephan Rothwell, an allyesconfig build fails since rtl8192cu was merged with failures such as: drivers/net/wireless/rtlwifi/rtl8192cu/built-in.o: In function `rtl92c_phy_sw_chnl': (.opd+0xf30): multiple definition of `rtl92c_phy_sw_chnl' drivers/net/wireless/rtlwifi/rtl8192ce/built-in.o:(.opd+0xb70): first defined here drivers/net/wireless/rtlwifi/rtl8192cu/built-in.o: In function `rtl92c_fill_h2c_cmd': (.opd+0x288): multiple definition of `rtl92c_fill_h2c_cmd' drivers/net/wireless/rtlwifi/rtl8192ce/built-in.o:(.opd+0x288): first defined here These are caused because the code shared between rtl8192ce and rtl8192cu is included in both drivers. This has been fixed by creating a new modue that contains the shared code. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

gecommit door
John W. Linville

bovenliggende
8c6113cd03
commit
1472d3a875
@@ -37,7 +37,6 @@
|
||||
#include "def.h"
|
||||
#include "phy.h"
|
||||
#include "dm.h"
|
||||
#include "fw.h"
|
||||
#include "led.h"
|
||||
#include "hw.h"
|
||||
|
||||
@@ -949,8 +948,8 @@ int rtl92ce_hw_init(struct ieee80211_hw *hw)
|
||||
}
|
||||
|
||||
rtlhal->last_hmeboxnum = 0;
|
||||
rtl92c_phy_mac_config(hw);
|
||||
rtl92c_phy_bb_config(hw);
|
||||
rtl92ce_phy_mac_config(hw);
|
||||
rtl92ce_phy_bb_config(hw);
|
||||
rtlphy->rf_mode = RF_OP_BY_SW_3WIRE;
|
||||
rtl92c_phy_rf_config(hw);
|
||||
rtlphy->rfreg_chnlval[0] = rtl_get_rfreg(hw, (enum radio_path)0,
|
||||
|
Verwijs in nieuw issue
Block a user