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:
Larry Finger 2013-07-24 14:00:39 -05:00
parent dfb5277a29
commit 73f9c27ffd
7 changed files with 12 additions and 17 deletions

View file

@ -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);

View file

@ -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[] ={