mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 14:33:05 +00:00
rtl8188eu: Remove wrapper around spin_lock_init
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
471d5a14a8
commit
dc4dbd3a7c
11 changed files with 18 additions and 24 deletions
|
@ -5100,7 +5100,7 @@ int rtw_wdev_alloc(struct adapter *padapter, struct device *dev)
|
|||
pwdev_priv->ifname_mon[0] = '\0';
|
||||
pwdev_priv->padapter = padapter;
|
||||
pwdev_priv->scan_request = NULL;
|
||||
_rtw_spinlock_init(&pwdev_priv->scan_req_lock);
|
||||
spin_lock_init(&pwdev_priv->scan_req_lock);
|
||||
|
||||
pwdev_priv->p2p_enabled = false;
|
||||
pwdev_priv->provdisc_req_issued = false;
|
||||
|
|
|
@ -898,7 +898,7 @@ u8 rtw_init_drv_sw(struct adapter *padapter)
|
|||
goto exit;
|
||||
}
|
||||
/* add for CONFIG_IEEE80211W, none 11w also can use */
|
||||
_rtw_spinlock_init(&padapter->security_key_mutex);
|
||||
spin_lock_init(&padapter->security_key_mutex);
|
||||
|
||||
/* We don't need to memset padapter->XXX to zero, because adapter is allocated by rtw_zvmalloc(). */
|
||||
/* memset((unsigned char *)&padapter->securitypriv, 0, sizeof (struct security_priv)); */
|
||||
|
@ -929,7 +929,7 @@ u8 rtw_init_drv_sw(struct adapter *padapter)
|
|||
#endif
|
||||
|
||||
#ifdef CONFIG_BR_EXT
|
||||
_rtw_spinlock_init(&padapter->br_ext_lock);
|
||||
spin_lock_init(&padapter->br_ext_lock);
|
||||
#endif /* CONFIG_BR_EXT */
|
||||
|
||||
exit:
|
||||
|
|
|
@ -656,11 +656,6 @@ void _rtw_mutex_free(_mutex *pmutex)
|
|||
#endif
|
||||
}
|
||||
|
||||
void _rtw_spinlock_init(_lock *plock)
|
||||
{
|
||||
spin_lock_init(plock);
|
||||
}
|
||||
|
||||
void _rtw_spinlock_free(_lock *plock)
|
||||
{
|
||||
}
|
||||
|
@ -670,7 +665,7 @@ void _rtw_init_queue(_queue *pqueue)
|
|||
|
||||
_rtw_init_listhead(&(pqueue->queue));
|
||||
|
||||
_rtw_spinlock_init(&(pqueue->lock));
|
||||
spin_lock_init(&(pqueue->lock));
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue