staging: rtl8188eu: Remove function rtw_hal_dm_deinit()
authornavin patidar <navin.patidar@gmail.com>
Mon, 26 May 2014 16:05:23 +0000 (21:35 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 May 2014 17:38:06 +0000 (10:38 -0700)
rtw_hal_dm_deinit() calls rtl8188e_deinit_dm_priv() using funtion pointer.
rtl8188e_deinit_dm_priv() has empty defination, so we can remove
rtw_hal_dm_deinit() and later rtl8188e_deinit_dm_priv() also will be
removed.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/hal_intf.c
drivers/staging/rtl8188eu/include/hal_intf.h
drivers/staging/rtl8188eu/os_dep/os_intfs.c

index 43eee48a26403b74183fa0cdacc01a2dfdd7a820..d0ac4a1833350ebc6d337ccee7abe656ce493fbb 100644 (file)
@@ -60,13 +60,6 @@ void rtw_hal_dm_init(struct adapter *adapt)
                adapt->HalFunc.dm_init(adapt);
 }
 
-void rtw_hal_dm_deinit(struct adapter *adapt)
-{
-       /*  cancel dm  timer */
-       if (adapt->HalFunc.dm_deinit)
-               adapt->HalFunc.dm_deinit(adapt);
-}
-
 void rtw_hal_sw_led_init(struct adapter *adapt)
 {
        if (adapt->HalFunc.InitSwLeds)
index acdef1db98b0fc1d9a15e20978b3052d829a6695..a8f25c9880e1fe3d01d99361393a07c2913f33f9 100644 (file)
@@ -296,7 +296,6 @@ void rtw_hal_def_value_init(struct adapter *padapter);
 void   rtw_hal_free_data(struct adapter *padapter);
 
 void rtw_hal_dm_init(struct adapter *padapter);
-void rtw_hal_dm_deinit(struct adapter *padapter);
 void rtw_hal_sw_led_init(struct adapter *padapter);
 void rtw_hal_sw_led_deinit(struct adapter *padapter);
 
index 9edb8e880ae8aad4ae02539a3368aa25426401c2..c1368b8c8a68e0eb5115fcf32e1a5095dfecdd0f 100644 (file)
@@ -951,8 +951,6 @@ void rtw_cancel_all_timer(struct adapter *padapter)
        _cancel_timer_ex(&padapter->pwrctrlpriv.pwr_state_check_timer);
 
        _cancel_timer_ex(&padapter->recvpriv.signal_stat_timer);
-       /* cancel dm timer */
-       rtw_hal_dm_deinit(padapter);
 }
 
 u8 rtw_free_drv_sw(struct adapter *padapter)