diff options
author | Koen Kooi <k-kooi@ti.com> | 2010-11-23 15:05:42 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2010-11-23 15:05:42 +0100 |
commit | df3ebbe99641e2ff2a6d3d31af19b3d3abcffcc1 (patch) | |
tree | 922f941461bc4dd4627f0a29a0024be5663d3cfe /recipes/powervr-drivers/omap3-sgx-modules | |
parent | a0ece31cba916e364d67a0ae2382095fb7768bbe (diff) | |
download | openembedded-df3ebbe99641e2ff2a6d3d31af19b3d3abcffcc1.tar.gz |
omap3-sgx-modules 1.4.14.2616: start updating it for 2.6.37
Signed-off-by: Koen Kooi <k-kooi@ti.com>
Diffstat (limited to 'recipes/powervr-drivers/omap3-sgx-modules')
-rw-r--r-- | recipes/powervr-drivers/omap3-sgx-modules/update.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/recipes/powervr-drivers/omap3-sgx-modules/update.patch b/recipes/powervr-drivers/omap3-sgx-modules/update.patch new file mode 100644 index 0000000000..08ede82e51 --- /dev/null +++ b/recipes/powervr-drivers/omap3-sgx-modules/update.patch @@ -0,0 +1,47 @@ +From: Koen Kooi <k-kooi@ti.com> +Subject: omap3-sgx-modules: make it build with recent kernels + +This patch fixes 2 problems: + +1) use of omap_rev_*_*() to get ES revision, the patch adding that to the kernel was rejected +2) removal of .ioctl from struct file_operations for BKL restructuring + +Signed-off-by: Koen Kooi <k-kooi@ti.com> + +--- /tmp/bc_cat.c 2010-11-23 14:38:14.000000000 +0100 ++++ GFX_Linux_KM/services4/3rdparty/bufferclass_ti/bc_cat.c 2010-11-23 14:47:12.000000000 +0100 +@@ -28,6 +28,7 @@ + #include <linux/kernel.h> + #include <linux/module.h> + #include <linux/fs.h> ++#include <linux/version.h> + #include <asm/uaccess.h> + #include <asm/io.h> + #include <img_defs.h> +@@ -121,8 +122,15 @@ + static struct file_operations bc_cat_fops = { + .open = bc_open, + .release = bc_release, +- .ioctl = bc_ioctl, +- .mmap = bc_mmap, ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36) ++ .ioctl = bc_ioctl, ++#else ++ .unlocked_ioctl = bc_ioctl, ++#ifdef CONFIG_COMPAT ++ .compat_ioctl = bc_ioctl, ++#endif ++#endif ++ .mmap = bc_mmap, + }; + + +@@ -492,7 +500,7 @@ + #ifdef PLAT_TI8168 + width_align = 8; + #else +- width_align = cpu_is_omap3530() && omap_rev_lt_3_0() ? 32 : 8; ++ width_align = cpu_is_omap3530() && omap_rev() < OMAP3430_REV_ES3_0 ? 32 : 8; + #endif + major = register_chrdev(0, DEVNAME, &bc_cat_fops); + |