patch-2.3.99-pre7 linux/drivers/sbus/char/vfc_i2c.c

Next file: linux/drivers/scsi/NCR5380.c
Previous file: linux/drivers/sbus/char/sunmouse.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre6/linux/drivers/sbus/char/vfc_i2c.c linux/drivers/sbus/char/vfc_i2c.c
@@ -88,8 +88,7 @@
 
 void vfc_i2c_delay_no_busy(struct vfc_dev *dev, unsigned long usecs) 
 {
-	dev->poll_timer.next = NULL;
-	dev->poll_timer.prev = NULL;
+	init_timer(&dev->poll_timer);
 	dev->poll_timer.expires = jiffies + 
 		((unsigned long)usecs*(HZ))/1000000;
 	dev->poll_timer.data=(unsigned long)dev;

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