]> git.openfabrics.org - ~emulex/tmp/compat/.git/commitdiff
compat: add missing pm_runtime.h
authorHauke Mehrtens <hauke@hauke-m.de>
Fri, 12 Nov 2010 23:23:15 +0000 (00:23 +0100)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Fri, 12 Nov 2010 23:31:48 +0000 (15:31 -0800)
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
include/linux/pm_runtime.h [new file with mode: 0644]

diff --git a/include/linux/pm_runtime.h b/include/linux/pm_runtime.h
new file mode 100644 (file)
index 0000000..eec965b
--- /dev/null
@@ -0,0 +1,14 @@
+#include <linux/version.h>
+
+#ifndef __COMPAT_LINUX_PM_RUNTIME_H
+#define __COMPAT_LINUX_PM_RUNTIME_H
+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32))
+#include_next <linux/pm_runtime.h>
+#else
+
+static inline void pm_runtime_enable(struct device *dev) {}
+
+#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32)) */
+
+#endif