staging: r8188eu: Remove wrapper around spin_lock_init
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 20 Dec 2013 04:38:38 +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_ap.c
drivers/staging/rtl8188eu/core/rtw_mlme.c
drivers/staging/rtl8188eu/core/rtw_recv.c
drivers/staging/rtl8188eu/core/rtw_sta_mgt.c
drivers/staging/rtl8188eu/core/rtw_xmit.c
drivers/staging/rtl8188eu/hal/rtl8188eu_recv.c
drivers/staging/rtl8188eu/include/osdep_service.h
drivers/staging/rtl8188eu/os_dep/os_intfs.c
drivers/staging/rtl8188eu/os_dep/osdep_service.c

index d86f67197ad1a2a645a1a3acd75f9d1e3e6c5119..c3a15611c0d5626279aed45f781eb69c35b41461 100644 (file)
@@ -33,7 +33,7 @@ void init_mlme_ap_info(struct adapter *padapter)
        struct wlan_acl_pool *pacl_list = &pstapriv->acl_list;
 
 
-       _rtw_spinlock_init(&pmlmepriv->bcn_update_lock);
+       spin_lock_init(&pmlmepriv->bcn_update_lock);
 
        /* for ACL */
        _rtw_init_queue(&pacl_list->acl_node_q);
index 27dfba20e11c7e699c90f5a2809884123c3bda47..eb79bf3d4b797e70f3b62d04380891fe85cdccaf 100644 (file)
@@ -54,7 +54,7 @@ _func_enter_;
        pmlmepriv->cur_network.network.InfrastructureMode = Ndis802_11AutoUnknown;
        pmlmepriv->scan_mode = SCAN_ACTIVE;/*  1: active, 0: pasive. Maybe someday we should rename this varable to "active_mode" (Jeff) */
 
-       _rtw_spinlock_init(&(pmlmepriv->lock));
+       spin_lock_init(&(pmlmepriv->lock));
        _rtw_init_queue(&(pmlmepriv->free_bss_pool));
        _rtw_init_queue(&(pmlmepriv->scanned_queue));
 
index a1bd84c08d69866d01191bfced5f9c768de863e0..1a140de41de4ddec0c685a533e5a60e7be6c508e 100644 (file)
@@ -49,7 +49,7 @@ _func_enter_;
 
        _rtw_memset((u8 *)psta_recvpriv, 0, sizeof (struct sta_recv_priv));
 
-       _rtw_spinlock_init(&psta_recvpriv->lock);
+       spin_lock_init(&psta_recvpriv->lock);
 
        _rtw_init_queue(&psta_recvpriv->defrag_q);
 
@@ -65,7 +65,7 @@ int _rtw_init_recv_priv(struct recv_priv *precvpriv, struct adapter *padapter)
        int     res = _SUCCESS;
 
 _func_enter_;
-       _rtw_spinlock_init(&precvpriv->lock);
+       spin_lock_init(&precvpriv->lock);
 
        _rtw_init_queue(&precvpriv->free_recv_queue);
        _rtw_init_queue(&precvpriv->recv_pending_queue);
index 0b8c1bff3f5d9f14c67c464a61bb74f385a06b96..81bb7a5e7c38e6bdc96a0d98abb7dc68c0430306 100644 (file)
@@ -31,7 +31,7 @@ static void _rtw_init_stainfo(struct sta_info *psta)
 _func_enter_;
        _rtw_memset((u8 *)psta, 0, sizeof (struct sta_info));
 
-        _rtw_spinlock_init(&psta->lock);
+        spin_lock_init(&psta->lock);
        _rtw_init_listhead(&psta->list);
        _rtw_init_listhead(&psta->hash_list);
        _rtw_init_queue(&psta->sleep_q);
@@ -89,7 +89,7 @@ _func_enter_;
 
        _rtw_init_queue(&pstapriv->free_sta_queue);
 
-       _rtw_spinlock_init(&pstapriv->sta_hash_lock);
+       spin_lock_init(&pstapriv->sta_hash_lock);
 
        pstapriv->asoc_sta_count = 0;
        _rtw_init_queue(&pstapriv->sleep_q);
@@ -114,8 +114,8 @@ _func_enter_;
 
        _rtw_init_listhead(&pstapriv->asoc_list);
        _rtw_init_listhead(&pstapriv->auth_list);
-       _rtw_spinlock_init(&pstapriv->asoc_list_lock);
-       _rtw_spinlock_init(&pstapriv->auth_list_lock);
+       spin_lock_init(&pstapriv->asoc_list_lock);
+       spin_lock_init(&pstapriv->auth_list_lock);
        pstapriv->asoc_list_cnt = 0;
        pstapriv->auth_list_cnt = 0;
 
index bf01c304dd6d8b3a3d30026a2114ca5f82c630ba..c0ccbaf3581736353295a52027361168df29c1e3 100644 (file)
@@ -43,7 +43,7 @@ void  _rtw_init_sta_xmit_priv(struct sta_xmit_priv *psta_xmitpriv)
 {
 _func_enter_;
        _rtw_memset((unsigned char *)psta_xmitpriv, 0, sizeof (struct sta_xmit_priv));
-       _rtw_spinlock_init(&psta_xmitpriv->lock);
+       spin_lock_init(&psta_xmitpriv->lock);
        _init_txservq(&psta_xmitpriv->be_q);
        _init_txservq(&psta_xmitpriv->bk_q);
        _init_txservq(&psta_xmitpriv->vi_q);
@@ -67,7 +67,7 @@ _func_enter_;
 
        /*  We don't need to memset padapter->XXX to zero, because adapter is allocated by rtw_zvmalloc(). */
 
-       _rtw_spinlock_init(&pxmitpriv->lock);
+       spin_lock_init(&pxmitpriv->lock);
        _rtw_init_sema(&pxmitpriv->xmit_sema, 0);
        _rtw_init_sema(&pxmitpriv->terminate_xmitthread_sema, 0);
 
index 0f47b891859321a3cde7e59900da8e8e480d29dd..17c94f4cc477f7d8ae1a51ddfb1fb8d14ca4634b 100644 (file)
@@ -75,7 +75,7 @@ int   rtl8188eu_init_recv_priv(struct adapter *padapter)
 
        for (i = 0; i < NR_RECVBUFF; i++) {
                _rtw_init_listhead(&precvbuf->list);
-               _rtw_spinlock_init(&precvbuf->recvbuf_lock);
+               spin_lock_init(&precvbuf->recvbuf_lock);
                precvbuf->alloc_sz = MAX_RECVBUF_SZ;
                res = rtw_os_recvbuf_resource_alloc(padapter, precvbuf);
                if (res == _FAIL)
index a42c55402c63015efda7d71c4bc6c6858fac3738..4b1a6ae04fac628d18029eedf78dbadb1f4dd440 100644 (file)
@@ -262,7 +262,6 @@ void _rtw_up_sema(struct semaphore *sema);
 u32  _rtw_down_sema(struct semaphore *sema);
 void _rtw_mutex_init(struct mutex *pmutex);
 void _rtw_mutex_free(struct mutex *pmutex);
-void _rtw_spinlock_init(spinlock_t *plock);
 void _rtw_spinlock_free(spinlock_t *plock);
 
 void _rtw_init_queue(struct __queue *pqueue);
index 17659bb04befc24fabded5439be74aba9fdcb5d1..bc2986a9e25c2c8f2d13937c64f204c64346dadc 100644 (file)
@@ -924,7 +924,7 @@ _func_enter_;
 
        rtw_hal_sreset_init(padapter);
 
-       _rtw_spinlock_init(&padapter->br_ext_lock);
+       spin_lock_init(&padapter->br_ext_lock);
 
 exit:
        RT_TRACE(_module_os_intfs_c_, _drv_info_, ("-rtw_init_drv_sw\n"));
index 2ffb4184fd0811f97871d3c9fcab881f54052488..13d9b1389df1d3b376a83032a309ab33099b0a42 100644 (file)
@@ -193,11 +193,6 @@ void       _rtw_mutex_free(struct mutex *pmutex)
        mutex_destroy(pmutex);
 }
 
-void   _rtw_spinlock_init(spinlock_t *plock)
-{
-       spin_lock_init(plock);
-}
-
 void   _rtw_spinlock_free(spinlock_t *plock)
 {
 }
@@ -205,7 +200,7 @@ void        _rtw_spinlock_free(spinlock_t *plock)
 void   _rtw_init_queue(struct __queue *pqueue)
 {
        _rtw_init_listhead(&(pqueue->queue));
-       _rtw_spinlock_init(&(pqueue->lock));
+       spin_lock_init(&(pqueue->lock));
 }
 
 u32      _rtw_queue_empty(struct __queue *pqueue)