mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 14:33:05 +00:00
rtl8188eu: Convert typedef for _mutex to struct mutex
This will break builds for kernels before mutexes were introduced. As this is very early, it should not affect any modern users. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
dfb5277a29
commit
73f9c27ffd
7 changed files with 12 additions and 17 deletions
|
@ -199,7 +199,7 @@ u32 _rtw_down_sema(_sema *sema)
|
|||
return _SUCCESS;
|
||||
}
|
||||
|
||||
void _rtw_mutex_init(_mutex *pmutex)
|
||||
void _rtw_mutex_init(struct mutex *pmutex)
|
||||
{
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
|
||||
mutex_init(pmutex);
|
||||
|
@ -208,7 +208,7 @@ void _rtw_mutex_init(_mutex *pmutex)
|
|||
#endif
|
||||
}
|
||||
|
||||
void _rtw_mutex_free(_mutex *pmutex)
|
||||
void _rtw_mutex_free(struct mutex *pmutex)
|
||||
{
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
|
||||
mutex_destroy(pmutex);
|
||||
|
|
|
@ -130,7 +130,7 @@ struct rtw_usb_drv {
|
|||
struct usb_driver usbdrv;
|
||||
int drv_registered;
|
||||
|
||||
_mutex hw_init_mutex;
|
||||
struct mutex hw_init_mutex;
|
||||
};
|
||||
|
||||
static struct usb_device_id rtl8188e_usb_id_tbl[] ={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue