patch-2.1.130 linux/drivers/char/bttv.c

Next file: linux/drivers/char/mem.c
Previous file: linux/drivers/block/loop.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.129/linux/drivers/char/bttv.c linux/drivers/char/bttv.c
@@ -2582,7 +2582,10 @@
 	btv->grabcount=0;
 	btv->grab=0;
 	btv->lastgrab=0;
-        btv->field=btv->last_field=0;
+	btv->field=btv->last_field=0;
+	btv->video_dev.minor = -1;
+	btv->vbi_dev.minor = -1;
+	btv->radio_dev.minor = -1;
 
 	/* i2c */
 	memcpy(&(btv->i2c),&bttv_i2c_bus_template,sizeof(struct i2c_bus));

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov