staging: r8188eu: Replace wrappers ODM_delay_ms() and rtw_mdelay_os() with a simple...
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 20 Dec 2013 04:38:42 +0000 (22:38 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Dec 2013 16:57:45 +0000 (08:57 -0800)
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_mp.c
drivers/staging/rtl8188eu/hal/HalPhyRf_8188e.c
drivers/staging/rtl8188eu/hal/odm_RegConfig8188E.c
drivers/staging/rtl8188eu/hal/odm_interface.c
drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c
drivers/staging/rtl8188eu/hal/usb_halinit.c
drivers/staging/rtl8188eu/include/odm_interface.h
drivers/staging/rtl8188eu/include/osdep_service.h
drivers/staging/rtl8188eu/os_dep/osdep_service.c

index 76c11989b61a22383b1210655b082971aead55bd..6451efdfb132c57869c52aad3d3781574e445f99 100644 (file)
@@ -858,11 +858,11 @@ static u32 rtw_GetPSDData(struct adapter *pAdapter, u32 point)
        psd_val |= point;
 
        rtw_write32(pAdapter, 0x808, psd_val);
-       rtw_mdelay_os(1);
+       mdelay(1);
        psd_val |= 0x00400000;
 
        rtw_write32(pAdapter, 0x808, psd_val);
-       rtw_mdelay_os(1);
+       mdelay(1);
        psd_val = rtw_read32(pAdapter, 0x8B4);
 
        psd_val &= 0x0000FFFF;
index 650aefc08190c02a208d077edf22016e0399a485..a317c9e4d60c567382cdb1beaac8b9cdaaf24788 100644 (file)
@@ -502,7 +502,7 @@ phy_PathA_IQK_8188E(struct adapter *adapt, bool configPathB)
        /*  delay x ms */
        ODM_RT_TRACE(dm_odm, ODM_COMP_CALIBRATION, ODM_DBG_LOUD, ("Delay %d ms for One shot, path A LOK & IQK.\n", IQK_DELAY_TIME_88E));
        /* PlatformStallExecution(IQK_DELAY_TIME_88E*1000); */
-       ODM_delay_ms(IQK_DELAY_TIME_88E);
+       mdelay(IQK_DELAY_TIME_88E);
 
        /*  Check failed */
        regeac = ODM_GetBBReg(dm_odm, rRx_Power_After_IQK_A_2, bMaskDWord);
@@ -568,7 +568,7 @@ phy_PathA_RxIQK(struct adapter *adapt, bool configPathB)
        ODM_RT_TRACE(dm_odm, ODM_COMP_CALIBRATION, ODM_DBG_LOUD,
                     ("Delay %d ms for One shot, path A LOK & IQK.\n",
                     IQK_DELAY_TIME_88E));
-       ODM_delay_ms(IQK_DELAY_TIME_88E);
+       mdelay(IQK_DELAY_TIME_88E);
 
        /*  Check failed */
        regeac = ODM_GetBBReg(dm_odm, rRx_Power_After_IQK_A_2, bMaskDWord);
@@ -623,7 +623,7 @@ phy_PathA_RxIQK(struct adapter *adapt, bool configPathB)
        /*  delay x ms */
        ODM_RT_TRACE(dm_odm, ODM_COMP_CALIBRATION, ODM_DBG_LOUD, ("Delay %d ms for One shot, path A LOK & IQK.\n", IQK_DELAY_TIME_88E));
        /* PlatformStallExecution(IQK_DELAY_TIME_88E*1000); */
-       ODM_delay_ms(IQK_DELAY_TIME_88E);
+       mdelay(IQK_DELAY_TIME_88E);
 
        /*  Check failed */
        regeac = ODM_GetBBReg(dm_odm, rRx_Power_After_IQK_A_2, bMaskDWord);
@@ -667,7 +667,7 @@ phy_PathB_IQK_8188E(struct adapter *adapt)
        ODM_RT_TRACE(dm_odm, ODM_COMP_CALIBRATION, ODM_DBG_LOUD,
                     ("Delay %d ms for One shot, path B LOK & IQK.\n",
                     IQK_DELAY_TIME_88E));
-       ODM_delay_ms(IQK_DELAY_TIME_88E);
+       mdelay(IQK_DELAY_TIME_88E);
 
        /*  Check failed */
        regeac = ODM_GetBBReg(dm_odm, rRx_Power_After_IQK_A_2, bMaskDWord);
@@ -1447,7 +1447,7 @@ void PHY_LCCalibrate_8188E(struct adapter *adapt)
                return;
 
        while (*(dm_odm->pbScanInProcess) && timecount < timeout) {
-               ODM_delay_ms(50);
+               mdelay(50);
                timecount += 50;
        }
 
index 48cea29a2b0bac808c18dfa354f69e8d8038d5d7..4f8c3bb82d524b6a075b9cab9da350a2d29d7c39 100644 (file)
@@ -27,9 +27,9 @@ void odm_ConfigRFReg_8188E(struct odm_dm_struct *pDM_Odm, u32 Addr,
     if (Addr == 0xffe) {
                msleep(50);
        } else if (Addr == 0xfd) {
-               ODM_delay_ms(5);
+               mdelay(5);
        } else if (Addr == 0xfc) {
-               ODM_delay_ms(1);
+               mdelay(1);
        } else if (Addr == 0xfb) {
                ODM_delay_us(50);
        } else if (Addr == 0xfa) {
@@ -85,9 +85,9 @@ void odm_ConfigBB_PHY_REG_PG_8188E(struct odm_dm_struct *pDM_Odm, u32 Addr,
        if (Addr == 0xfe) {
                msleep(50);
        } else if (Addr == 0xfd) {
-               ODM_delay_ms(5);
+               mdelay(5);
        } else if (Addr == 0xfc) {
-               ODM_delay_ms(1);
+               mdelay(1);
        } else if (Addr == 0xfb) {
                ODM_delay_us(50);
        } else if (Addr == 0xfa) {
@@ -107,9 +107,9 @@ void odm_ConfigBB_PHY_8188E(struct odm_dm_struct *pDM_Odm, u32 Addr, u32 Bitmask
        if (Addr == 0xfe) {
                msleep(50);
        } else if (Addr == 0xfd) {
-               ODM_delay_ms(5);
+               mdelay(5);
        } else if (Addr == 0xfc) {
-               ODM_delay_ms(1);
+               mdelay(1);
        } else if (Addr == 0xfb) {
                ODM_delay_us(50);
        } else if (Addr == 0xfa) {
index fa308114f06ae1a34862314f13d27b89fc8f7352..4510270a26c958e01e5135282b4f89106ed82a7c 100644 (file)
@@ -152,11 +152,6 @@ void ODM_StallExecution(u32 usDelay)
        rtw_udelay_os(usDelay);
 }
 
-void ODM_delay_ms(u32 ms)
-{
-       rtw_mdelay_os(ms);
-}
-
 void ODM_delay_us(u32 us)
 {
        rtw_udelay_os(us);
index 8be2ad7217d4bc398922c43a7b937d34b71f84d1..b409b6935b8843d9d9a3369082e78ee99c14228d 100644 (file)
@@ -656,7 +656,7 @@ _func_enter_;
                        DLBcnCount++;
                        do {
                                rtw_yield_os();
-                               /* rtw_mdelay_os(10); */
+                               /* mdelay(10); */
                                /*  check rsvd page download OK. */
                                rtw_hal_get_hwreg(adapt, HW_VAR_BCN_VALID, (u8 *)(&bcn_valid));
                                poll++;
index b867bbb518858bdd50a0ea687ec3604ddd8b0355..b24ad495062c0822f3aa447f2a0ea44d6fc5941f 100644 (file)
@@ -1894,7 +1894,7 @@ _func_enter_;
                                /* RQPN Load 0 */
                                rtw_write16(Adapter, REG_RQPN_NPQ, 0x0);
                                rtw_write32(Adapter, REG_RQPN, 0x80000000);
-                               rtw_mdelay_os(10);
+                               mdelay(10);
                        }
                }
                break;
index 058546369a16845dd1060ba0e3784ec5e7fd5906..34ba46bc164eb0505fd07398078190c00afd70ac 100644 (file)
@@ -137,8 +137,6 @@ void ODM_IsWorkItemScheduled(void *pRtWorkItem);
 /*  ODM Timer relative API. */
 void ODM_StallExecution(u32 usDelay);
 
-void ODM_delay_ms(u32 ms);
-
 void ODM_delay_us(u32 us);
 
 void ODM_sleep_us(u32 us);
index a4ba79ad2d5223ab3fcc1bf93a7d35f17571cad7..a97486ecf29ef4064062fffff885ab53aa724645 100644 (file)
@@ -279,7 +279,6 @@ void rtw_usleep_os(int us);
 
 u32  rtw_atoi(u8 *s);
 
-void rtw_mdelay_os(int ms);
 void rtw_udelay_os(int us);
 
 void rtw_yield_os(void);
index bf1cd69cd16d68e68f02f947663c3a63f8a6ef15..985735b66f536738057d9ee38bc67998c5e6f943 100644 (file)
@@ -253,11 +253,6 @@ void rtw_usleep_os(int us)
                msleep((us/1000) + 1);
 }
 
-void rtw_mdelay_os(int ms)
-{
-       mdelay((unsigned long)ms);
-}
-
 void rtw_udelay_os(int us)
 {
        udelay((unsigned long)us);