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

Next file: linux/drivers/char/bw-qcam.c
Previous file: linux/drivers/char/apm_bios.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.103/linux/drivers/char/bttv.c linux/drivers/char/bttv.c
@@ -242,7 +242,7 @@
 		stat=btread(BT848_INT_STAT);
 		if (stat & BT848_INT_I2CDONE)
                         break;
-                udelay(1000);
+                mdelay(1);
 	}
   
 	if (!i) 
@@ -284,7 +284,7 @@
 		stat=btread(BT848_INT_STAT);
 		if (stat & BT848_INT_I2CDONE)
 			break;
-                udelay(1000);
+                mdelay(1);
 	}
   
 	if (!i) 
@@ -475,7 +475,7 @@
 
 	/* This seems to get rid of some synchronization problems */
 	btand(~(3<<5), BT848_IFORM);
-	udelay(10000); 
+	mdelay(10); 
 
 	if (input==3) 
 	{
@@ -1587,12 +1587,13 @@
 				return -EFAULT;
 			if(v.depth!=8 && v.depth!=16 && v.depth!=24 && v.depth!=32)
 				return -EINVAL;
-			if (v.base)
+			if (v.base) {
 			        /* also handle virtual base addresses */
 			        if ((unsigned int)v.base>=0xe0000000UL)
 			                btv->win.vidadr=(uint)v.base;
 				else 
 				  btv->win.vidadr= __va(uvirt_to_bus((uint)v.base));
+			}
 			btv->win.sheight=v.height;
 			btv->win.swidth=v.width;
 			btv->win.bpp=v.depth/8;

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