mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 14:33:05 +00:00
rtl8188eu: CONFIG_HAS_EARLYSUSPEND is not ever selected
This configuration variable and its corresponding dead code are removed. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
10dd5cd02b
commit
5ce0198d67
4 changed files with 0 additions and 102 deletions
|
@ -1275,17 +1275,9 @@ _func_enter_;
|
|||
pwrctrlpriv->rtw_workqueue = create_singlethread_workqueue("rtw_workqueue");
|
||||
#endif /* CONFIG_RESUME_IN_WORKQUEUE */
|
||||
|
||||
#if defined(CONFIG_HAS_EARLYSUSPEND)
|
||||
pwrctrlpriv->early_suspend.suspend = NULL;
|
||||
rtw_register_early_suspend(pwrctrlpriv);
|
||||
#endif /* CONFIG_HAS_EARLYSUSPEND */
|
||||
|
||||
|
||||
_func_exit_;
|
||||
|
||||
}
|
||||
|
||||
|
||||
void rtw_free_pwrctrl_priv(PADAPTER adapter)
|
||||
{
|
||||
struct pwrctrl_priv *pwrctrlpriv = &adapter->pwrctrlpriv;
|
||||
|
@ -1302,11 +1294,6 @@ _func_enter_;
|
|||
}
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(CONFIG_HAS_EARLYSUSPEND)
|
||||
rtw_unregister_early_suspend(pwrctrlpriv);
|
||||
#endif /* CONFIG_HAS_EARLYSUSPEND */
|
||||
|
||||
_free_pwrlock(&pwrctrlpriv->lock);
|
||||
|
||||
_func_exit_;
|
||||
|
@ -1337,56 +1324,6 @@ void rtw_resume_in_workqueue(struct pwrctrl_priv *pwrpriv)
|
|||
}
|
||||
#endif /* CONFIG_RESUME_IN_WORKQUEUE */
|
||||
|
||||
#ifdef CONFIG_HAS_EARLYSUSPEND
|
||||
extern int rtw_resume_process(_adapter *padapter);
|
||||
static void rtw_early_suspend(struct early_suspend *h)
|
||||
{
|
||||
struct pwrctrl_priv *pwrpriv = container_of(h, struct pwrctrl_priv, early_suspend);
|
||||
DBG_88E("%s\n",__func__);
|
||||
|
||||
/* jeff: do nothing but set do_late_resume to false */
|
||||
pwrpriv->do_late_resume = false;
|
||||
}
|
||||
|
||||
static void rtw_late_resume(struct early_suspend *h)
|
||||
{
|
||||
struct pwrctrl_priv *pwrpriv = container_of(h, struct pwrctrl_priv, early_suspend);
|
||||
_adapter *adapter = container_of(pwrpriv, _adapter, pwrctrlpriv);
|
||||
|
||||
DBG_88E("%s\n",__func__);
|
||||
if (pwrpriv->do_late_resume) {
|
||||
rtw_resume_process(adapter);
|
||||
pwrpriv->do_late_resume = false;
|
||||
}
|
||||
}
|
||||
|
||||
void rtw_register_early_suspend(struct pwrctrl_priv *pwrpriv)
|
||||
{
|
||||
DBG_88E("%s\n", __func__);
|
||||
|
||||
/* jeff: set the early suspend level before blank screen, so we wll do late resume after scree is lit */
|
||||
pwrpriv->early_suspend.level = EARLY_SUSPEND_LEVEL_BLANK_SCREEN - 20;
|
||||
pwrpriv->early_suspend.suspend = rtw_early_suspend;
|
||||
pwrpriv->early_suspend.resume = rtw_late_resume;
|
||||
register_early_suspend(&pwrpriv->early_suspend);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void rtw_unregister_early_suspend(struct pwrctrl_priv *pwrpriv)
|
||||
{
|
||||
DBG_88E("%s\n", __func__);
|
||||
|
||||
pwrpriv->do_late_resume = false;
|
||||
|
||||
if (pwrpriv->early_suspend.suspend)
|
||||
unregister_early_suspend(&pwrpriv->early_suspend);
|
||||
|
||||
pwrpriv->early_suspend.suspend = NULL;
|
||||
pwrpriv->early_suspend.resume = NULL;
|
||||
}
|
||||
#endif /* CONFIG_HAS_EARLYSUSPEND */
|
||||
|
||||
u8 rtw_interface_ps_func(_adapter *padapter,HAL_INTF_PS_FUNC efunc_id,u8* val)
|
||||
{
|
||||
u8 bResult = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue