patch-2.3.50 linux/drivers/char/stradis.c

Next file: linux/drivers/char/tda9855.c
Previous file: linux/drivers/char/sh-sci.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.49/linux/drivers/char/stradis.c linux/drivers/char/stradis.c
@@ -28,6 +28,7 @@
 #include <linux/major.h>
 #include <linux/malloc.h>
 #include <linux/mm.h>
+#include <linux/init.h>
 #include <linux/poll.h>
 #include <linux/pci.h>
 #include <linux/signal.h>
@@ -2236,13 +2237,9 @@
 	}
 }
 
-#ifdef MODULE
-int init_module(void)
-{
-#else
-int init_stradis_cards(struct video_init *unused)
+
+static int __init stradis_init (void)
 {
-#endif
 	struct pci_dev *dev = NULL;
 	int result = 0, i;
 
@@ -2269,11 +2266,14 @@
 	return 0;
 }
 
-#ifdef MODULE
-void cleanup_module(void)
+
+static void __exit stradis_exit (void)
 {
 	release_saa();
 	printk(KERN_INFO "stradis: module cleanup complete\n");
 }
 
-#endif
+
+module_init(stradis_init);
+module_exit(stradis_exit);
+

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)