patch-2.3.25 linux/drivers/char/radio-terratec.c
Next file: linux/drivers/char/radio-trust.c
Previous file: linux/drivers/char/radio-sf16fmi.c
Back to the patch index
Back to the overall index
- Lines: 50
- Date:
Thu Oct 28 16:13:03 1999
- Orig file:
v2.3.24/linux/drivers/char/radio-terratec.c
- Orig date:
Mon Oct 4 15:49:29 1999
diff -u --recursive --new-file v2.3.24/linux/drivers/char/radio-terratec.c linux/drivers/char/radio-terratec.c
@@ -307,8 +307,13 @@
NULL
};
-int __init terratec_init(struct video_init *v)
+static int __init terratec_init(void)
{
+ if(io==-1)
+ {
+ printk(KERN_ERR "You must set an I/O address with io=0x???\n");
+ return -EINVAL;
+ }
if (check_region(io, 2))
{
printk(KERN_ERR "TerraTec: port 0x%x already in use\n", io);
@@ -334,8 +339,6 @@
return 0;
}
-#ifdef MODULE
-
MODULE_AUTHOR("R.OFFERMANNS & others");
MODULE_DESCRIPTION("A driver for the TerraTec ActiveRadio Standalone radio card.");
MODULE_PARM(io, "i");
@@ -343,21 +346,13 @@
EXPORT_NO_SYMBOLS;
-int init_module(void)
-{
- if(io==-1)
- {
- printk(KERN_ERR "You must set an I/O address with io=0x???\n");
- return -EINVAL;
- }
- return terratec_init(NULL);
-}
-
-void cleanup_module(void)
+static void __exit terratec_cleanup_module(void)
{
video_unregister_device(&terratec_radio);
release_region(io,2);
printk(KERN_INFO "TERRATEC ActivRadio Standalone card driver unloaded.\n");
}
-#endif
+module_init(terratec_init);
+module_exit(terratec_cleanup_module);
+
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)