Skip to content

Commit

Permalink
Patch from Krzysiek Pawlik <nelchael@gentoo.org> to fix compilation
Browse files Browse the repository at this point in the history
with 2.6.30 (owner field was removed from struct proc_dir_entry).
  • Loading branch information
tetromino committed Jun 6, 2009
1 parent c594820 commit 729d37b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lenovo-sl-laptop.c
Expand Up @@ -1209,7 +1209,9 @@ static int lenovo_sl_procfs_init(void)
"Failed to create proc dir acpi/%s/\n", LENSL_PROC_DIRNAME);
return -ENOENT;
}
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,29)
proc_dir->owner = THIS_MODULE;
#endif
proc_ec = create_proc_entry(LENSL_PROC_EC, 0600, proc_dir);
if (!proc_ec) {
vdbg_printk(LENSL_ERR,
Expand Down

0 comments on commit 729d37b

Please sign in to comment.