From 644cb5ee732553d6f14ed06769303a751de12f98 Mon Sep 17 00:00:00 2001 From: Lekensteyn Date: Mon, 12 Dec 2011 17:36:11 +0100 Subject: [PATCH] bbswitch: Note why PM_RESTORE_PREPARE is unused --- bbswitch.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bbswitch.c b/bbswitch.c index e3f41d5..d109109 100644 --- a/bbswitch.c +++ b/bbswitch.c @@ -189,6 +189,11 @@ static int bbswitch_pm_handler(struct notifier_block *nbp, if (dis_before_suspend_disabled) bbswitch_off(); 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; }