diff --git a/kernel/power/hibernate.c b/kernel/power/hibernate.c index 048d0b5148319db70883ee0c9963459c22048385..ab2836c25038aafe18be8e8571fcbc13a0aa3bcc 100644 --- a/kernel/power/hibernate.c +++ b/kernel/power/hibernate.c @@ -62,7 +62,7 @@ void hibernation_set_ops(struct platform_hibernation_ops *ops) { if (ops && !(ops->begin && ops->end && ops->pre_snapshot && ops->prepare && ops->finish && ops->enter && ops->pre_restore - && ops->restore_cleanup)) { + && ops->restore_cleanup && ops->leave)) { WARN_ON(1); return; }