inline void rtw_suspend_lock_uninit() { #ifdef CONFIG_WAKELOCK wake_lock_destroy(&rtw_suspend_lock); wake_lock_destroy(&rtw_suspend_ext_lock); #elif defined(CONFIG_ANDROID_POWER) android_uninit_suspend_lock(&rtw_suspend_lock); android_uninit_suspend_lock(&rtw_suspend_ext_lock); #endif }
inline void rtw_suspend_lock_uninit() { #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 #ifdef CONFIG_WAKELOCK wake_lock_destroy(&rtw_suspend_lock); #elif defined(CONFIG_ANDROID_POWER) android_uninit_suspend_lock(&rtw_suspend_lock); #endif }
static inline void deinit_suspend(void) { android_uninit_suspend_lock(&max9879_suspend_lock); }