/* This function is called for suspend and resume.  */
static int vmwdt_power_event(struct notifier_block *this, unsigned long event, void *ptr)
/* This function is called for suspend and resume.  */
static int vmwdt_power_event(struct notifier_block *this, unsigned long event, void *ptr)
{
	switch (event) {
	case PM_POST_HIBERNATION:
	case PM_POST_SUSPEND:
		return vmwdt_resume();
	case PM_HIBERNATION_PREPARE:
	case PM_SUSPEND_PREPARE:
		return vmwdt_suspend();
	default:
		return NOTIFY_DONE;
	}
}