patch-2.4.5 linux/drivers/media/video/saa7110.c
Next file: linux/drivers/media/video/saa7111.c
Previous file: linux/drivers/media/video/saa5249.c
Back to the patch index
Back to the overall index
- Lines: 42
- Date:
Sat May 19 17:43:06 2001
- Orig file:
v2.4.4/linux/drivers/media/video/saa7110.c
- Orig date:
Wed Dec 29 17:08:55 1999
diff -u --recursive --new-file v2.4.4/linux/drivers/media/video/saa7110.c linux/drivers/media/video/saa7110.c
@@ -19,6 +19,7 @@
*/
#include <linux/module.h>
+#include <linux/init.h>
#include <linux/types.h>
#include <linux/delay.h>
#include <linux/slab.h>
@@ -398,7 +399,7 @@
/* ----------------------------------------------------------------------- */
-struct i2c_driver i2c_driver_saa7110 =
+static struct i2c_driver i2c_driver_saa7110 =
{
"saa7110", /* name */
@@ -412,18 +413,16 @@
EXPORT_NO_SYMBOLS;
-#ifdef MODULE
-int init_module(void)
-#else
-int saa7110_init(void)
-#endif
+static int saa7110_init(void)
{
return i2c_register_driver(&i2c_driver_saa7110);
}
-#ifdef MODULE
-void cleanup_module(void)
+static void saa7110_exit(void)
{
i2c_unregister_driver(&i2c_driver_saa7110);
}
-#endif
+
+
+module_init(saa7110_init);
+module_exit(saa7110_exit);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)