|
@@ -233,7 +233,7 @@ static int pm_op(struct device *dev,
|
|
|
}
|
|
|
break;
|
|
|
#endif /* CONFIG_SUSPEND */
|
|
|
-#ifdef CONFIG_HIBERNATION
|
|
|
+#ifdef CONFIG_HIBERNATE_CALLBACKS
|
|
|
case PM_EVENT_FREEZE:
|
|
|
case PM_EVENT_QUIESCE:
|
|
|
if (ops->freeze) {
|
|
@@ -260,7 +260,7 @@ static int pm_op(struct device *dev,
|
|
|
suspend_report_result(ops->restore, error);
|
|
|
}
|
|
|
break;
|
|
|
-#endif /* CONFIG_HIBERNATION */
|
|
|
+#endif /* CONFIG_HIBERNATE_CALLBACKS */
|
|
|
default:
|
|
|
error = -EINVAL;
|
|
|
}
|
|
@@ -308,7 +308,7 @@ static int pm_noirq_op(struct device *dev,
|
|
|
}
|
|
|
break;
|
|
|
#endif /* CONFIG_SUSPEND */
|
|
|
-#ifdef CONFIG_HIBERNATION
|
|
|
+#ifdef CONFIG_HIBERNATE_CALLBACKS
|
|
|
case PM_EVENT_FREEZE:
|
|
|
case PM_EVENT_QUIESCE:
|
|
|
if (ops->freeze_noirq) {
|
|
@@ -335,7 +335,7 @@ static int pm_noirq_op(struct device *dev,
|
|
|
suspend_report_result(ops->restore_noirq, error);
|
|
|
}
|
|
|
break;
|
|
|
-#endif /* CONFIG_HIBERNATION */
|
|
|
+#endif /* CONFIG_HIBERNATE_CALLBACKS */
|
|
|
default:
|
|
|
error = -EINVAL;
|
|
|
}
|