소스 검색

qcacmn: Remove CONFIG_CNSS dependency

Use OS standard APIs. Remove CONFIG_CNSS dependency.

Change-Id: I6689e8b5c4260f393a2b499c8b41359d042ce894
CRs-Fixed: 1000797
Yuanyuan Liu 9 년 전
부모
커밋
614628ba98
1개의 변경된 파일1개의 추가작업 그리고 9개의 파일을 삭제
  1. 1 9
      qdf/linux/src/i_qdf_lock.h

+ 1 - 9
qdf/linux/src/i_qdf_lock.h

@@ -46,9 +46,7 @@
 #include <linux/semaphore.h>
 #endif
 #include <linux/interrupt.h>
-#if defined(WLAN_OPEN_SOURCE) && defined(CONFIG_HAS_WAKELOCK)
-#include <linux/wakelock.h>
-#endif
+#include <linux/pm_wakeup.h>
 
 /* define for flag */
 #define QDF_LINUX_UNLOCK_BH  1
@@ -93,13 +91,7 @@ typedef struct __qdf_spinlock {
 
 typedef struct semaphore __qdf_semaphore_t;
 
-#if defined CONFIG_CNSS
 typedef struct wakeup_source qdf_wake_lock_t;
-#elif defined(WLAN_OPEN_SOURCE) && defined(CONFIG_HAS_WAKELOCK)
-typedef struct wake_lock qdf_wake_lock_t;
-#else
-typedef int qdf_wake_lock_t;
-#endif
 
 #define LINUX_LOCK_COOKIE 0x12345678