diff options
author | Koen Kooi <koen@openembedded.org> | 2009-10-18 15:30:13 +0200 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2009-10-18 15:32:39 +0200 |
commit | 213bf9c00e99b81df64d302932944bdbc6f9ed65 (patch) | |
tree | e9192d230f9b7c6c5354196fded8c1eb243e458b /recipes/powervr-drivers/omap3-sgx-modules/proc-interface.patch | |
parent | f63f03571570ce2a575702b3f04e70e9406a6788 (diff) |
omap3 sgx modules: make proc interface patch use proper kernel version macros, courtesy Bin Liu
Diffstat (limited to 'recipes/powervr-drivers/omap3-sgx-modules/proc-interface.patch')
-rw-r--r-- | recipes/powervr-drivers/omap3-sgx-modules/proc-interface.patch | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/recipes/powervr-drivers/omap3-sgx-modules/proc-interface.patch b/recipes/powervr-drivers/omap3-sgx-modules/proc-interface.patch index 831b3edd4d..c11a9b7017 100644 --- a/recipes/powervr-drivers/omap3-sgx-modules/proc-interface.patch +++ b/recipes/powervr-drivers/omap3-sgx-modules/proc-interface.patch @@ -1,20 +1,22 @@ -Index: omap3-sgx-modules-1.3.13.1607/services4/srvkm/env/linux/proc.c -=================================================================== ---- omap3-sgx-modules-1.3.13.1607.orig/services4/srvkm/env/linux/proc.c -+++ omap3-sgx-modules-1.3.13.1607/services4/srvkm/env/linux/proc.c -@@ -134,7 +134,6 @@ int CreateProcEntry(const char * name, r +--- ./GFX_Linux_KM/services4/srvkm/env/linux/proc.c.orig 2009-10-09 13:46:40.000000000 -0500 ++++ ./GFX_Linux_KM/services4/srvkm/env/linux/proc.c 2009-10-09 13:48:36.000000000 -0500 +@@ -134,7 +134,9 @@ if (file) { -- file->owner = THIS_MODULE; ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31) + file->owner = THIS_MODULE; ++#endif file->read_proc = rhandler; file->write_proc = whandler; file->data = data; -@@ -165,7 +164,6 @@ int CreateProcReadEntry(const char * nam +@@ -165,7 +167,9 @@ if (file) { -- file->owner = THIS_MODULE; ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31) + file->owner = THIS_MODULE; ++#endif return 0; } |