summaryrefslogtreecommitdiffstats
path: root/recipes/powervr-drivers/omap3-sgx-modules/0001-Compile-fixes-for-recent-kernels.patch
blob: 53b1f2772e25cde24db42639b72fa7b00ee19e12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From ef693358e658a7cbab4d2696108d9d4240ab8096 Mon Sep 17 00:00:00 2001
From: Mike Rapoport <mike@compulab.co.il>
Date: Wed, 2 Dec 2009 10:13:15 +0200
Subject: [PATCH] Compile fixes for recent kernels

---
 .../3rdparty/dc_omap3430_linux/omaplfb_linux.c     |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/services4/3rdparty/dc_omap3430_linux/omaplfb_linux.c b/services4/3rdparty/dc_omap3430_linux/omaplfb_linux.c
index 935f78b..4d41829 100755
--- a/services4/3rdparty/dc_omap3430_linux/omaplfb_linux.c
+++ b/services4/3rdparty/dc_omap3430_linux/omaplfb_linux.c
@@ -57,7 +57,11 @@ extern int omap_dispc_request_irq(unsigned long, void (*)(void *), void *);
 extern void omap_dispc_free_irq(unsigned long, void (*)(void *), void *);
 extern void omap_dispc_set_plane_base(int plane, IMG_UINT32 phys_addr);
 #else
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32)
+#include <plat/display.h>
+#else
 #include <mach/display.h>
+#endif
 #include <linux/console.h>
 #include <linux/fb.h>
 #endif
-- 
1.6.4.4