Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx> --- include/linux/pm_runtime.h | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) 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 0000000..eec965b --- /dev/null +++ b/include/linux/pm_runtime.h @@ -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 -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html