patch-2.4.0-test12 linux/drivers/media/video/bttv-cards.c
Next file: linux/drivers/media/video/bttv-driver.c
Previous file: linux/drivers/media/radio/radio-zoltrix.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Sun Dec 3 17:45:22 2000
- Orig file:
v2.4.0-test11/linux/drivers/media/video/bttv-cards.c
- Orig date:
Sun Nov 19 18:44:09 2000
diff -u --recursive --new-file v2.4.0-test11/linux/drivers/media/video/bttv-cards.c linux/drivers/media/video/bttv-cards.c
@@ -1319,6 +1319,24 @@
}
}
+#ifndef MODULE
+
+static int __init bttv_card_setup(char *str)
+{
+ int i,number,res = 2;
+
+ for (i = 0; res == 2 && i < BTTV_MAX; i++) {
+ res = get_option(&str,&number);
+ if (res)
+ card[i] = number;
+ }
+ return 1;
+}
+
+__setup("bttv_card=", bttv_card_setup);
+
+#endif /* not MODULE */
+
/*
* Local variables:
* c-basic-offset: 8
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)