static bool s3c_cm_suspend_again(void) { bool ret; int i = 0; if (!is_charger_manager_active()) return false; while (s3c_cm_devices && s3c_cm_devices[i]) { pm_generic_resume(s3c_cm_devices[i]); i++; } if (s3c_cm_resume_console) resume_console(); ret = cm_suspend_again(); if (s3c_cm_resume_console) suspend_console(); while (i > 0) { i--; pm_generic_suspend(s3c_cm_devices[i]); } return ret; }
static bool s3c_cm_suspend_again(void) { bool ret; if (!is_charger_manager_active()) return false; ret = cm_suspend_again(); return ret; }