patch-2.3.19 linux/drivers/char/radio-miropcm20.c
Next file: linux/drivers/char/radio-rtrack2.c
Previous file: linux/drivers/char/radio-gemtek.c
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Wed Sep 29 14:02:59 1999
- Orig file:
v2.3.18/linux/drivers/char/radio-miropcm20.c
- Orig date:
Mon Jul 5 20:07:02 1999
diff -u --recursive --new-file v2.3.18/linux/drivers/char/radio-miropcm20.c linux/drivers/char/radio-miropcm20.c
@@ -205,7 +205,7 @@
NULL
};
-int __init pcm20_init(struct video_init *v)
+static int __init pcm20_init(void)
{
pcm20_radio.priv=&pcm20_unit;
@@ -224,22 +224,16 @@
return 0;
}
-#ifdef MODULE
-
MODULE_AUTHOR("Ruurd Reitsma");
MODULE_DESCRIPTION("A driver for the Miro PCM20 radio card.");
EXPORT_NO_SYMBOLS;
-int init_module(void)
-{
-
- return pcm20_init(NULL);
-}
-
-void cleanup_module(void)
+static void __exit pcm20_cleanup(void)
{
video_unregister_device(&pcm20_radio);
}
-#endif
+module_init(pcm20_init);
+module_exit(pcm20_cleanup);
+
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)