]> Devoid-pointer.net GitWeb - omnibook.git/commitdiff
Fix build with kernel >= 2.6.30
authorJulien Valroff <julien@kirya.net>
Tue, 14 Jul 2009 16:14:50 +0000 (16:14 +0000)
committerJulien Valroff <julien@kirya.net>
Tue, 14 Jul 2009 16:14:50 +0000 (16:14 +0000)
doc/ChangeLog
init.c

index 22bd15bb7ded961f3de910513d7456364eacacfe..38749b9cd76fb8030d3b9b0133d86572dd6ab199 100644 (file)
@@ -12,6 +12,7 @@ Changelog file for omnibook package:
 * Applied patches from Azael Avalos <coproscefalo@gmail.com>
   to add support to Satellite X205 and other laptops based on
   ICH8
+* Fix build with kernel >= 2.6.30
 
 2.20070211 Mathieu BĂ©rard <math_b@users.sourceforge.net>
 * Disable Acer support, acerhk module should provided better
diff --git a/init.c b/init.c
index 420226ffb4177583c22fcd107bb2869c62f82694..c5278fea963fa35a5fe338fc4be630ba3d93d0b4 100644 (file)
--- a/init.c
+++ b/init.c
@@ -291,7 +291,9 @@ static int __init omnibook_init(struct omnibook_feature *feature)
                proc_entry->read_proc = &procfile_read_dispatch;
                if (feature->write)
                        proc_entry->write_proc = &procfile_write_dispatch;
-               proc_entry->owner = THIS_MODULE;
+               #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30)
+                       proc_entry->owner = THIS_MODULE;
+               #endif
        }
        list_add_tail(&feature->list, &omnibook_available_feature->list);
        return 0;