bbswitch: Note why PM_RESTORE_PREPARE is unused

This commit is contained in:
Lekensteyn 2011-12-12 17:36:11 +01:00
parent b50902797a
commit 644cb5ee73

View File

@ -189,6 +189,11 @@ static int bbswitch_pm_handler(struct notifier_block *nbp,
if (dis_before_suspend_disabled) if (dis_before_suspend_disabled)
bbswitch_off(); bbswitch_off();
break; break;
case PM_RESTORE_PREPARE:
// deliberately don't do anything as it does not occur before suspend
// nor hibernate, but before restoring a saved image. In that case,
// either PM_POST_HIBERNATION or PM_POST_RESTORE will be called
break;
} }
return 0; return 0;
} }