patch-2.4.5 linux/drivers/media/radio/radio-trust.c
Next file: linux/drivers/media/radio/radio-typhoon.c
Previous file: linux/drivers/media/radio/radio-terratec.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Sat May 19 17:43:06 2001
- Orig file:
v2.4.4/linux/drivers/media/radio/radio-trust.c
- Orig date:
Fri Mar 2 11:12:10 2001
diff -u --recursive --new-file v2.4.4/linux/drivers/media/radio/radio-trust.c linux/drivers/media/radio/radio-trust.c
@@ -31,6 +31,7 @@
#endif
static int io = CONFIG_RADIO_TRUST_PORT;
+static int radio_nr = -1;
static int ioval = 0xf;
static int users = 0;
static __u16 curvol;
@@ -303,7 +304,7 @@
printk(KERN_ERR "trust: port 0x%x already in use\n", io);
return -EBUSY;
}
- if(video_register_device(&trust_radio, VFL_TYPE_RADIO)==-1)
+ if(video_register_device(&trust_radio, VFL_TYPE_RADIO, radio_nr)==-1)
{
release_region(io, 2);
return -EINVAL;
@@ -332,6 +333,7 @@
MODULE_DESCRIPTION("A driver for the Trust FM Radio card.");
MODULE_PARM(io, "i");
MODULE_PARM_DESC(io, "I/O address of the Trust FM Radio card (0x350 or 0x358)");
+MODULE_PARM(radio_nr, "i");
EXPORT_NO_SYMBOLS;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)