From: Hauke Mehrtens Date: Fri, 12 Nov 2010 23:23:15 +0000 (+0100) Subject: compat: add missing pm_runtime.h X-Git-Tag: v2.6.38-rc1-1~20 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=6f82007bafd6c005952a32d58a24dfdcf546a09b;p=~tnikolova%2Fcompat%2F.git compat: add missing pm_runtime.h Signed-off-by: Hauke Mehrtens --- diff --git a/include/linux/pm_runtime.h b/include/linux/pm_runtime.h new file mode 100644 index 0000000..eec965b --- /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