Skip to content

Commit

Permalink
rtl8192cu: Fix compile for 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
apxii committed Oct 10, 2012
1 parent 5d39f97 commit 7fea174
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions drivers/net/wireless/rtl8192cu/os_dep/osdep_service.c
Original file line number Diff line number Diff line change
Expand Up @@ -1015,14 +1015,15 @@ inline void rtw_suspend_lock_init()

inline void rtw_suspend_lock_uninit()
{

#if 0
#if defined(CONFIG_WAKELOCK) || defined(CONFIG_ANDROID_POWER)
DBG_871X("##########%s###########\n", __FUNCTION__);
if(rtw_suspend_lock.link.next == LIST_POISON1 || rtw_suspend_lock.link.prev == LIST_POISON2) {
DBG_871X("##########%s########### list poison!!\n", __FUNCTION__);
return;
}
#endif
#endif

#ifdef CONFIG_WAKELOCK
wake_lock_destroy(&rtw_suspend_lock);
Expand All @@ -1034,14 +1035,15 @@ inline void rtw_suspend_lock_uninit()

inline void rtw_lock_suspend()
{

#if 0
#if defined(CONFIG_WAKELOCK) || defined(CONFIG_ANDROID_POWER)
//DBG_871X("##########%s###########\n", __FUNCTION__);
if(rtw_suspend_lock.link.next == LIST_POISON1 || rtw_suspend_lock.link.prev == LIST_POISON2) {
DBG_871X("##########%s########### list poison!!\n", __FUNCTION__);
return;
}
#endif
#endif

#ifdef CONFIG_WAKELOCK
wake_lock(&rtw_suspend_lock);
Expand All @@ -1052,13 +1054,15 @@ inline void rtw_lock_suspend()

inline void rtw_unlock_suspend()
{
#if 0
#if defined(CONFIG_WAKELOCK) || defined(CONFIG_ANDROID_POWER)
//DBG_871X("##########%s###########\n", __FUNCTION__);
if(rtw_suspend_lock.link.next == LIST_POISON1 || rtw_suspend_lock.link.prev == LIST_POISON2) {
DBG_871X("##########%s########### list poison!!\n", __FUNCTION__);
return;
}
#endif
#endif

#ifdef CONFIG_WAKELOCK
wake_unlock(&rtw_suspend_lock);
Expand Down

0 comments on commit 7fea174

Please sign in to comment.