Skip to content

Commit

Permalink
staging: rtl8188eu: using unique names is good
Browse files Browse the repository at this point in the history
fixes:

drivers/staging/built-in.o:(.opd+0xaab8): multiple definition of `rtl88e_phy_rf_config'
drivers/net/built-in.o:(.opd+0x78840): first defined here
drivers/staging/built-in.o:(.opd+0xa9f8): multiple definition of `rtl88e_download_fw'
drivers/net/built-in.o:(.opd+0x781b0): first defined here
drivers/staging/built-in.o: In function `.rtl88e_phy_rf_config':
(.text+0xe0a00): multiple definition of `.rtl88e_phy_rf_config'
drivers/net/built-in.o:(.text+0xe85a48): first defined here
drivers/staging/built-in.o: In function `.rtl88e_download_fw':
(.text+0xdf28c): multiple definition of `.rtl88e_download_fw'
drivers/net/built-in.o:(.text+0xe6f330): first defined here
drivers/staging/built-in.o: In function `.rtl88e_phy_mac_config':
(.text+0xdf984): multiple definition of `.rtl88e_phy_mac_config'
drivers/net/built-in.o:(.text+0xe84a8c): first defined here
drivers/staging/built-in.o: In function `.rtl88e_phy_bb_config':
(.text+0xdfa2c): multiple definition of `.rtl88e_phy_bb_config'
drivers/net/built-in.o:(.text+0xe84d14): first defined here
drivers/staging/built-in.o:(.opd+0xaa58): multiple definition of `rtl88e_phy_bb_config'
drivers/net/built-in.o:(.opd+0x78828): first defined here
drivers/staging/built-in.o:(.opd+0xaa28): multiple definition of `rtl88e_phy_mac_config'

Signed-off-by: Stephen Rothwell <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
sfrothwell authored and gregkh committed Aug 30, 2014
1 parent 9641723 commit 90d88de
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/rtl8188eu/hal/HalHWImg8188E_BB.c
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ static bool config_parafile(struct adapter *adapt)
return true;
}

bool rtl88e_phy_bb_config(struct adapter *adapt)
bool rtl88eu_phy_bb_config(struct adapter *adapt)
{
int rtstatus = true;
struct hal_data_8188e *hal_data = GET_HAL_DATA(adapt);
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/rtl8188eu/hal/HalHWImg8188E_MAC.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ static u32 array_MAC_REG_8188E[] = {
0x70B, 0x00000087,
};

bool rtl88e_phy_mac_config(struct adapter *adapt)
bool rtl88eu_phy_mac_config(struct adapter *adapt)
{
u32 i;
u32 arraylength;
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/rtl8188eu/hal/HalHWImg8188E_RF.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ static bool rtl88e_phy_rf6052_config(struct adapter *adapt)
return rf6052_conf_para(adapt);
}

bool rtl88e_phy_rf_config(struct adapter *adapt)
bool rtl88eu_phy_rf_config(struct adapter *adapt)
{
return rtl88e_phy_rf6052_config(adapt);
}
2 changes: 1 addition & 1 deletion drivers/staging/rtl8188eu/hal/fw.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ static int _rtl88e_fw_free_to_go(struct adapter *adapt)
return err;
}

int rtl88e_download_fw(struct adapter *adapt)
int rtl88eu_download_fw(struct adapter *adapt)
{
struct hal_data_8188e *rtlhal = GET_HAL_DATA(adapt);
struct dvobj_priv *dvobj = adapter_to_dvobj(adapt);
Expand Down
8 changes: 4 additions & 4 deletions drivers/staging/rtl8188eu/hal/usb_halinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ static u32 rtl8188eu_hal_init(struct adapter *Adapter)
Adapter->bFWReady = false;
haldata->fw_ractrl = false;
} else {
status = rtl88e_download_fw(Adapter);
status = rtl88eu_download_fw(Adapter);

if (status) {
DBG_88E("%s: Download Firmware failed!!\n", __func__);
Expand All @@ -758,11 +758,11 @@ static u32 rtl8188eu_hal_init(struct adapter *Adapter)
}
rtl8188e_InitializeFirmwareVars(Adapter);

rtl88e_phy_mac_config(Adapter);
rtl88eu_phy_mac_config(Adapter);

rtl88e_phy_bb_config(Adapter);
rtl88eu_phy_bb_config(Adapter);

rtl88e_phy_rf_config(Adapter);
rtl88eu_phy_rf_config(Adapter);

HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_EFUSE_PATCH);
status = rtl8188e_iol_efuse_patch(Adapter);
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/rtl8188eu/include/fw.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ struct rtl92c_firmware_header {
u32 rsvd5;
};

int rtl88e_download_fw(struct adapter *adapt);
int rtl88eu_download_fw(struct adapter *adapt);

#endif
6 changes: 3 additions & 3 deletions drivers/staging/rtl8188eu/include/phy.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
bool rtl88e_phy_mac_config(struct adapter *adapt);
bool rtl88e_phy_rf_config(struct adapter *adapt);
bool rtl88e_phy_bb_config(struct adapter *adapt);
bool rtl88eu_phy_mac_config(struct adapter *adapt);
bool rtl88eu_phy_rf_config(struct adapter *adapt);
bool rtl88eu_phy_bb_config(struct adapter *adapt);

0 comments on commit 90d88de

Please sign in to comment.