diff mbox

[_COMPAT_H] git://linuxtv.org/media_build.git Legacy issues

Message ID 1295305161.2162.21.camel@tvboxspy (mailing list archive)
State Not Applicable
Headers show

Commit Message

Malcolm Priestley Jan. 17, 2011, 10:59 p.m. UTC
None
diff mbox

Patch

diff --git a/v4l/compat.h b/v4l/compat.h
index 9e622ce..df98698 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -749,6 +749,8 @@  static inline void *vzalloc(unsigned long size)
 
 #endif
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 37)
+
 #if NEED_FLUSH_WORK_SYNC
 #define flush_work_sync(dev)
 #endif
@@ -760,6 +762,14 @@  static inline void *vzalloc(unsigned long size)
 }
 #endif
 
+#define alloc_ordered_workqueue(a,b) create_singlethread_workqueue(a)
+
+#else
+#ifdef CONFIG_PM
+#include <linux/pm_runtime.h>
+#endif
+#endif
+
 #ifndef KEY_10CHANNELSUP
 #define KEY_10CHANNELSUP        0x1b8   /* 10 channels up (10+) */
 #define KEY_10CHANNELSDOWN      0x1b9   /* 10 channels down (10-) */