summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backport/backport-include/linux/pm_runtime.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/backport/backport-include/linux/pm_runtime.h b/backport/backport-include/linux/pm_runtime.h
index d9163eea..e16cd30b 100644
--- a/backport/backport-include/linux/pm_runtime.h
+++ b/backport/backport-include/linux/pm_runtime.h
@@ -16,4 +16,25 @@ static inline bool pm_runtime_active(struct device *dev) { return true; }
#endif /* LINUX_VERSION_IS_LESS(3,9,0) */
+#if LINUX_VERSION_IS_LESS(3,15,0)
+static inline int pm_runtime_force_suspend(struct device *dev)
+{
+#ifdef CONFIG_PM
+ /* cannot backport properly, I think */
+ WARN_ON_ONCE(1);
+ return -EINVAL;
+#endif
+ return 0;
+}
+static inline int pm_runtime_force_resume(struct device *dev)
+{
+#ifdef CONFIG_PM
+ /* cannot backport properly, I think */
+ WARN_ON_ONCE(1);
+ return -EINVAL;
+#endif
+ return 0;
+}
+#endif
+
#endif /* __BACKPORT_PM_RUNTIME_H */