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
- Lines: 27
- Date:
Sat May 20 12:07:56 2000
- Orig file:
v2.3.99-pre8/linux/drivers/macintosh/nvram.c
- Orig date:
Thu Feb 10 17:11:09 2000
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, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)