printk(KERN_CRIT "apm: suspend was vetoed, but suspending anyway.\n");
}
- device_suspend(3, SUSPEND_POWER_DOWN);
+ device_suspend(3);
/* serialize with the timer interrupt */
write_seqlock_irq(&xtime_lock);
if (err != APM_SUCCESS)
apm_error("suspend", err);
err = (err == APM_SUCCESS) ? 0 : -EIO;
- device_resume(RESUME_POWER_ON);
+ device_resume();
pm_send_all(PM_RESUME, (void *)0);
queue_event(APM_NORMAL_RESUME, NULL);
out:
write_seqlock_irq(&xtime_lock);
set_time();
write_sequnlock_irq(&xtime_lock);
- device_resume(RESUME_POWER_ON);
+ device_resume();
pm_send_all(PM_RESUME, (void *)0);
queue_event(event, NULL);
}