OSDN Git Service

rtl8723au: Make build more robust in the presence of a stale copy of include/linux...
authorLarry Finger <Larry.Finger@lwfinger.net>
Thu, 16 May 2013 20:51:31 +0000 (15:51 -0500)
committerLarry Finger <Larry.Finger@lwfinger.net>
Thu, 16 May 2013 20:51:31 +0000 (15:51 -0500)
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
include/osdep_service.h
os_dep/os_intfs.c

index e922201..ca0758a 100755 (executable)
@@ -457,7 +457,7 @@ static inline unsigned char _cancel_timer_ex(struct timer_list *ptimer)
 
 static inline void thread_enter(char *name)
 {
-#if (LINUX_VERSION_CODE <= KERNEL_VERSION(3,7,0))
+#ifdef daemonize
        daemonize("%s", name);
        allow_signal(SIGTERM);
 #endif
index 732bad5..3634d92 100644 (file)
@@ -279,7 +279,7 @@ static int  rtw_proc_cnt = 0;
 
 #define RTW_PROC_NAME DRV_NAME
 
-#if (LINUX_VERSION_CODE > KERNEL_VERSION(3, 8, 0))
+#ifndef create_proc_entry
 /* dummy routines */
 void rtw_proc_remove_one(struct net_device *dev)
 {