From 6f82007bafd6c005952a32d58a24dfdcf546a09b Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sat, 13 Nov 2010 00:23:15 +0100 Subject: [PATCH] compat: add missing pm_runtime.h Signed-off-by: Hauke Mehrtens --- include/linux/pm_runtime.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 include/linux/pm_runtime.h diff --git a/include/linux/pm_runtime.h b/include/linux/pm_runtime.h new file mode 100644 index 000000000000..eec965ba0d73 --- /dev/null +++ b/include/linux/pm_runtime.h @@ -0,0 +1,14 @@ +#include + +#ifndef __COMPAT_LINUX_PM_RUNTIME_H +#define __COMPAT_LINUX_PM_RUNTIME_H + +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32)) +#include_next +#else + +static inline void pm_runtime_enable(struct device *dev) {} + +#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32)) */ + +#endif -- 2.30.2