patch-2.3.99-pre9 linux/drivers/macintosh/nvram.c

Next file: linux/drivers/macintosh/via-pmu.c
Previous file: linux/drivers/macintosh/mediabay.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre8/linux/drivers/macintosh/nvram.c linux/drivers/macintosh/nvram.c
@@ -96,21 +96,18 @@
 	&nvram_fops
 };
 
-int nvram_init(void)
+int __init nvram_init(void)
 {
 	printk(KERN_INFO "Macintosh non-volatile memory driver v%s\n",
 		NVRAM_VERSION);
 	misc_register(&nvram_dev);
 	return 0;
 }
-#ifdef MODULE
-int init_module (void)
-{
-        return( nvram_init() );
-}
 
-void cleanup_module (void)
+void __exit nvram_cleanup(void)
 {
         misc_deregister( &nvram_dev );
 }
-#endif
+
+module_init(nvram_init);
+module_exit(nvram_cleanup);

FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen (who was at: [email protected])