oe patch: 0002-Compile-fixes-for-recent-kernels
authorGrazvydas Ignotas <notasas@gmail.com>
Sat, 24 Mar 2012 23:50:23 +0000 (01:50 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 25 Mar 2012 00:43:47 +0000 (02:43 +0200)
services4/system/omap3630/sysutils_linux.c

index 159b4da..396a95a 100644 (file)
 #include <asm/bug.h>\r
 #include <linux/platform_device.h>\r
 \r
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,33))\r
+#include <linux/semaphore.h>\r
+#include <asm-generic/resource.h>\r
+#include <plat/omap-pm.h>\r
+#else\r
+\r
 #if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,31))\r
 #include <linux/semaphore.h>\r
 #include <plat/resource.h>\r
@@ -49,6 +55,7 @@
 #endif\r
 #endif\r
 #endif\r
+#endif\r
 \r
 #if    (LINUX_VERSION_CODE >  KERNEL_VERSION(2,6,27)) && \\r
        (LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,29))\r