void rtw_unregister_early_suspend(struct pwrctrl_priv *pwrpriv) { DBG_871X("%s\n", __FUNCTION__); if (pwrpriv->early_suspend.suspend) android_unregister_early_suspend(&pwrpriv->early_suspend); pwrpriv->early_suspend.suspend = NULL; pwrpriv->early_suspend.resume = NULL; }
void rtw_unregister_early_suspend(struct pwrctrl_priv *pwrpriv) { DBG_8192D("%s\n", __func__); rtw_set_do_late_resume(pwrpriv, false); if (pwrpriv->early_suspend.suspend) android_unregister_early_suspend(&pwrpriv->early_suspend); pwrpriv->early_suspend.suspend = NULL; pwrpriv->early_suspend.resume = NULL; }
static int mma7660_remove(struct i2c_client *client) { struct mma7660_data *mma7660 = i2c_get_clientdata(client); misc_deregister(&mma7660_device); input_unregister_device(mma7660->input_dev); input_free_device(mma7660->input_dev); free_irq(client->irq, mma7660); kfree(mma7660); #ifdef CONFIG_ANDROID_POWER android_unregister_early_suspend(&mma7660_early_suspend); #endif this_client = NULL; return 0; }