From: Hauke Mehrtens Date: Fri, 12 Nov 2010 23:23:15 +0000 (+0100) Subject: compat: add missing pm_runtime.h X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6f82007bafd6c005952a32d58a24dfdcf546a09b;p=openwrt%2Fstaging%2Fblogic.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 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