mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-09 15:29:16 +00:00
staging: r8188eu: remove dm_deinit from hal_ops
Remove dm_deinit from hal_ops and remove its wrapper rtw_hal_dm_deinit(). Call rtl8188e_deinit_dm_priv() directly instead. Signed-off-by: Michael Straube <straube.linux@gmail.com> Link: https://lore.kernel.org/r/20210906190223.11396-5-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
63b4b687c7
commit
aa21a7e436
@ -12,13 +12,6 @@ void rtw_hal_free_data(struct adapter *adapt)
|
||||
adapt->HalFunc.free_hal_data(adapt);
|
||||
}
|
||||
|
||||
void rtw_hal_dm_deinit(struct adapter *adapt)
|
||||
{
|
||||
/* cancel dm timer */
|
||||
if (adapt->HalFunc.dm_deinit)
|
||||
adapt->HalFunc.dm_deinit(adapt);
|
||||
}
|
||||
|
||||
u32 rtw_hal_power_on(struct adapter *adapt)
|
||||
{
|
||||
if (adapt->HalFunc.hal_power_on)
|
||||
|
@ -1784,8 +1784,6 @@ void rtl8188e_set_hal_ops(struct hal_ops *pHalFunc)
|
||||
{
|
||||
pHalFunc->free_hal_data = &rtl8188e_free_hal_data;
|
||||
|
||||
pHalFunc->dm_deinit = &rtl8188e_deinit_dm_priv;
|
||||
|
||||
pHalFunc->set_bwmode_handler = &PHY_SetBWMode8188E;
|
||||
pHalFunc->set_channel_handler = &PHY_SwChnl8188E;
|
||||
|
||||
|
@ -143,8 +143,6 @@ struct hal_ops {
|
||||
s32 (*init_recv_priv)(struct adapter *padapter);
|
||||
void (*free_recv_priv)(struct adapter *padapter);
|
||||
|
||||
void (*dm_deinit)(struct adapter *padapter);
|
||||
|
||||
void (*set_bwmode_handler)(struct adapter *padapter,
|
||||
enum ht_channel_width Bandwidth,
|
||||
u8 Offset);
|
||||
@ -250,8 +248,6 @@ void rtl8188eu_init_default_value(struct adapter *adapt);
|
||||
|
||||
void rtw_hal_free_data(struct adapter *padapter);
|
||||
|
||||
void rtw_hal_dm_deinit(struct adapter *padapter);
|
||||
|
||||
u32 rtw_hal_power_on(struct adapter *padapter);
|
||||
uint rtw_hal_init(struct adapter *padapter);
|
||||
uint rtw_hal_deinit(struct adapter *padapter);
|
||||
|
@ -913,7 +913,7 @@ void rtw_cancel_all_timer(struct adapter *padapter)
|
||||
|
||||
_cancel_timer_ex(&padapter->recvpriv.signal_stat_timer);
|
||||
/* cancel dm timer */
|
||||
rtw_hal_dm_deinit(padapter);
|
||||
rtl8188e_deinit_dm_priv(padapter);
|
||||
}
|
||||
|
||||
u8 rtw_free_drv_sw(struct adapter *padapter)
|
||||
|
Loading…
x
Reference in New Issue
Block a user