[PATCH] SET_MODULE_OWNER change in apm_emu.c

From: Paul Mackerras (paulus@samba.org)
Date: Wed May 21 2003 - 20:24:04 EST


Linus,

The patch below fixes drivers/macintosh/apm_emu.c by replacing the
SET_MODULE_OWNER with a statement that explicitly sets the owner field
of the proc_dir_entry that it creates.

Please apply.

Thanks,
Paul.

diff -urN linux-2.5/drivers/macintosh/apm_emu.c pmac-2.5/drivers/macintosh/apm_emu.c
--- linux-2.5/drivers/macintosh/apm_emu.c 2003-04-03 08:55:29.000000000 +1000
+++ pmac-2.5/drivers/macintosh/apm_emu.c 2003-05-21 13:40:54.000000000 +1000
@@ -524,7 +524,7 @@
                 
         apm_proc = create_proc_info_entry("apm", 0, NULL, apm_emu_get_info);
         if (apm_proc)
- SET_MODULE_OWNER(apm_proc);
+ apm_proc->owner = THIS_MODULE;
 
         misc_register(&apm_device);
 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri May 23 2003 - 22:00:47 EST