]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging:rtl8188eu: Remove function rtl8188e_sreset_linked_status_check()
authornavin patidar <navin.patidar@gmail.com>
Thu, 29 May 2014 17:50:50 +0000 (23:20 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 22:28:49 +0000 (15:28 -0700)
Remove rtl8188e_sreset_linked_status_check() and function pointer
->sreset_linked_status_check pointing to it.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c
drivers/staging/rtl8188eu/hal/rtl8188e_sreset.c
drivers/staging/rtl8188eu/include/hal_intf.h
drivers/staging/rtl8188eu/include/rtl8188e_sreset.h

index 55eaf578b77acb5127b95c8e40dd2d72d29fe83f..a0f517244d64ec62e42eb45dd15e8bf8bad3bfb8 100644 (file)
@@ -1873,7 +1873,6 @@ void rtl8188e_set_hal_ops(struct hal_ops *pHalFunc)
 
        pHalFunc->sreset_init_value = &sreset_init_value;
        pHalFunc->silentreset = &rtl8188e_silentreset_for_specific_platform;
-       pHalFunc->sreset_linked_status_check  = &rtl8188e_sreset_linked_status_check;
        pHalFunc->sreset_get_wifi_status  = &sreset_get_wifi_status;
 
        pHalFunc->GetHalODMVarHandler = &rtl8188e_GetHalODMVar;
index fd114c1e14b9f04c62382c540b92a68cc2f9699b..7fb0f68640d71f0ac6697a65bc687bad3de69200 100644 (file)
@@ -26,20 +26,3 @@ void rtl8188e_silentreset_for_specific_platform(struct adapter *padapter)
 {
 }
 
-void rtl8188e_sreset_linked_status_check(struct adapter *padapter)
-{
-       u32 rx_dma_status = 0;
-       u8 fw_status = 0;
-       rx_dma_status = rtw_read32(padapter, REG_RXDMA_STATUS);
-       if (rx_dma_status != 0x00) {
-               DBG_88E("%s REG_RXDMA_STATUS:0x%08x\n", __func__, rx_dma_status);
-               rtw_write32(padapter, REG_RXDMA_STATUS, rx_dma_status);
-       }
-       fw_status = rtw_read8(padapter, REG_FMETHR);
-       if (fw_status != 0x00) {
-               if (fw_status == 1)
-                       DBG_88E("%s REG_FW_STATUS (0x%02x), Read_Efuse_Fail !!\n", __func__, fw_status);
-               else if (fw_status == 2)
-                       DBG_88E("%s REG_FW_STATUS (0x%02x), Condition_No_Match !!\n", __func__, fw_status);
-       }
-}
index 5d67e906b3813593dc2befc77a2d1292f764ecc6..c3f94d8ad2a58b4be311fb0e5f554bfefa0bc444 100644 (file)
@@ -253,7 +253,6 @@ struct hal_ops {
 
        void (*sreset_init_value)(struct adapter *padapter);
        void (*silentreset)(struct adapter *padapter);
-       void (*sreset_linked_status_check) (struct adapter *padapter);
        u8 (*sreset_get_wifi_status)(struct adapter *padapter);
 
        int (*IOL_exec_cmds_sync)(struct adapter *padapter,
index d4f0d7213e0db2ffe4d2ee9bcba39812279f2d49..eb884b7fd2c4acb1395939a4fb9fab7346bae83b 100644 (file)
@@ -25,6 +25,5 @@
 #include <rtw_sreset.h>
 
 void rtl8188e_silentreset_for_specific_platform(struct adapter *padapter);
-void rtl8188e_sreset_linked_status_check(struct adapter *padapter);
 
 #endif