rtl8188eu: Fix some build problems

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2018-03-14 10:45:07 -05:00
parent 2d546792fc
commit add1bba8bc
3 changed files with 25 additions and 5 deletions

View file

@ -20,6 +20,10 @@
#ifndef __OSDEP_SERVICE_H_
#define __OSDEP_SERVICE_H_
#include <linux/version.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
#include <linux/sched/signal.h>
#endif
#include <drv_conf.h>
#include <basic_types.h>
@ -202,12 +206,14 @@ __inline static void rtw_list_delete(struct list_head *plist)
list_del_init(plist);
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0)
__inline static void _init_timer(struct timer_list *ptimer,struct net_device * nic_hdl,void *pfunc,void* cntx)
{
ptimer->function = pfunc;
ptimer->data = (unsigned long)cntx;
init_timer(ptimer);
}
#endif
__inline static void _set_timer(struct timer_list *ptimer,u32 delay_time)
{