summaryrefslogtreecommitdiffstats
path: root/acompiler/acerhk/acerhk-0.5.35-kernel-2.6.30.patch
diff options
context:
space:
mode:
authorgeantbrun <geantbrun at gmail dot com>2010-11-14 21:59:19 +0100
committergeantbrun <geantbrun at gmail dot com>2010-11-14 21:59:19 +0100
commit3ab55f011ef4890a7539edd4e27c04e2fbe8954e (patch)
tree08f87163a943b55dc85114e440d694e9dd452c47 /acompiler/acerhk/acerhk-0.5.35-kernel-2.6.30.patch
parent40b114afcd34dd9ccf216a1f7b157271d450764b (diff)
downloadnutyx-extra-3ab55f011ef4890a7539edd4e27c04e2fbe8954e.tar.gz
nutyx-extra-3ab55f011ef4890a7539edd4e27c04e2fbe8954e.tar.bz2
nutyx-extra-3ab55f011ef4890a7539edd4e27c04e2fbe8954e.tar.xz
nutyx-extra-3ab55f011ef4890a7539edd4e27c04e2fbe8954e.zip
acerhk, nouveau port version 0.5.35-1
Diffstat (limited to 'acompiler/acerhk/acerhk-0.5.35-kernel-2.6.30.patch')
-rw-r--r--acompiler/acerhk/acerhk-0.5.35-kernel-2.6.30.patch72
1 files changed, 72 insertions, 0 deletions
diff --git a/acompiler/acerhk/acerhk-0.5.35-kernel-2.6.30.patch b/acompiler/acerhk/acerhk-0.5.35-kernel-2.6.30.patch
new file mode 100644
index 000000000..eec5a5cf3
--- /dev/null
+++ b/acompiler/acerhk/acerhk-0.5.35-kernel-2.6.30.patch
@@ -0,0 +1,72 @@
+--- a/acerhk.c
++++ b/acerhk.c
+@@ -2668,7 +2668,9 @@ static int acerhk_proc_init(void)
+ printk(KERN_INFO"acerhk: could not create /proc/driver/acerhk\n");
+ }
+ else {
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30)
+ proc_acer_dir->owner = THIS_MODULE;
++#endif
+ /* now create several files, first general info ... */
+ entry = create_proc_read_entry("info",
+ 0444, proc_acer_dir, acerhk_proc_info, NULL);
+@@ -2677,7 +2679,9 @@ static int acerhk_proc_init(void)
+ remove_proc_entry("driver/acerhk", NULL);
+ retval = 0;
+ } else {
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30)
+ entry->owner = THIS_MODULE;
++#endif
+ /* ... last pressed key ... */
+ entry = create_proc_read_entry("key",
+ 0444, proc_acer_dir, acerhk_proc_key, NULL);
+@@ -2687,7 +2691,9 @@ static int acerhk_proc_init(void)
+ remove_proc_entry("driver/acerhk", NULL);
+ retval = 0;
+ } else {
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30)
+ entry->owner = THIS_MODULE;
++#endif
+ /* ... and led control file */
+ entry = create_proc_entry("led", 0222, proc_acer_dir);
+ if (entry == NULL) {
+@@ -2699,7 +2705,9 @@ static int acerhk_proc_init(void)
+ }
+ else {
+ entry->write_proc = acerhk_proc_led;
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30)
+ entry->owner = THIS_MODULE;
++#endif
+ /* ... and wireless led controll file */
+ entry = create_proc_entry("wirelessled", 0222, proc_acer_dir);
+ if (entry == NULL) {
+@@ -2712,7 +2720,9 @@ static int acerhk_proc_init(void)
+ }
+ else {
+ entry->write_proc = acerhk_proc_wirelessled;
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30)
+ entry->owner = THIS_MODULE;
++#endif
+ /* ... and bluetooth led controll file */
+ entry = create_proc_entry("blueled", 0222, proc_acer_dir);
+ if (entry == NULL) {
+@@ -2725,7 +2735,9 @@ static int acerhk_proc_init(void)
+ retval = 0;
+ } else {
+ entry->write_proc = acerhk_proc_blueled;
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30)
+ entry->owner = THIS_MODULE;
++#endif
+ retval = 1;
+ #ifdef ACERDEBUG
+ /* add extra file for debugging purposes */
+@@ -2742,7 +2754,9 @@ static int acerhk_proc_init(void)
+ }
+ else {
+ entry->write_proc = acerhk_proc_debug;
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30)
+ entry->owner = THIS_MODULE;
++#endif
+ retval = 1;
+ }
+ #endif