patch-2.3.1 linux/drivers/char/hfmodem/main.c

Next file: linux/drivers/char/isicom.c
Previous file: linux/drivers/char/ftape/lowlevel/fdc-io.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.0/linux/drivers/char/hfmodem/main.c linux/drivers/char/hfmodem/main.c
@@ -638,6 +638,7 @@
 	hfmodem_state[0].ptt_out.seriobase = serio;
 	hfmodem_state[0].ptt_out.pariobase = pario;
 	hfmodem_state[0].ptt_out.midiiobase = midiio;
+	init_waitqueue_head(&hfmodem_state[0].wait);
 	hfmodem_refclock_probe();
 	output_check(&hfmodem_state[0]);
 #if defined(CONFIG_HFMODEM_WSS) && defined(CONFIG_HFMODEM_SBC)
@@ -703,7 +704,8 @@
         int i;
 
 	printk(hfmodem_drvinfo);
-        hfmodem_refclock_probe();
+ 	init_waitqueue_head(&hfmode_state[0].wait);
+       hfmodem_refclock_probe();
         output_check(&hfmodem_state[0]);
 #if defined(CONFIG_HFMODEM_WSS) && defined(CONFIG_HFMODEM_SBC)
         if (hw) 

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