patch-1.3.14 linux/include/linux/optcd.h

Next file: linux/include/linux/soundcard.h
Previous file: linux/include/linux/netrom.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.13/linux/include/linux/optcd.h linux/include/linux/optcd.h
@@ -135,8 +135,8 @@
 #define RESET_WAIT		1000
 
 #define SET_TIMER(func, jifs) \
-	delay_timer.expires = jifs; \
-	delay_timer.function = (void *) func; \
+	delay_timer.expires = jiffies+(jifs); \
+	delay_timer.function = (void *) (func); \
 	add_timer(&delay_timer);
 #define CLEAR_TIMER		del_timer(&delay_timer)
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this