--- file_not_specified_in_diff +++ file_not_specified_in_diff @@ -, +, @@ --- a/acerhk.c +++ b/acerhk.c @@ -2702,7 +2702,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); @@ -2711,7 +2713,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); @@ -2721,7 +2725,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) { @@ -2733,7 +2739,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) { @@ -2746,7 +2754,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) { @@ -2759,7 +2769,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 */ @@ -2776,7 +2788,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