patch-2.4.5 linux/drivers/media/radio/radio-maxiradio.c

Next file: linux/drivers/media/radio/radio-miropcm20.c
Previous file: linux/drivers/media/radio/radio-maestro.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.4/linux/drivers/media/radio/radio-maxiradio.c linux/drivers/media/radio/radio-maxiradio.c
@@ -56,6 +56,9 @@
 /* TEA5757 pin mappings */
 const int clk = 1, data = 2, wren = 4, mo_st = 8, power = 16 ;
 
+static int radio_nr = -1;
+MODULE_PARM(radio_nr, "i");
+
 
 #define FREQ_LO		 50*16000
 #define FREQ_HI		150*16000
@@ -331,7 +334,7 @@
 	init_MUTEX(&radio_unit.lock);
 	maxiradio_radio.priv = &radio_unit;
 
-	if(video_register_device(&maxiradio_radio, VFL_TYPE_RADIO)==-1) {
+	if(video_register_device(&maxiradio_radio, VFL_TYPE_RADIO, radio_nr)==-1) {
 	        printk("radio-maxiradio: can't register device!");
 	        goto err_out_free_region;
 	}

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