diff options
Diffstat (limited to 'drivers/char/hfmodem/main.c')
-rw-r--r-- | drivers/char/hfmodem/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/char/hfmodem/main.c b/drivers/char/hfmodem/main.c index 20347f32c..6af834fce 100644 --- a/drivers/char/hfmodem/main.c +++ b/drivers/char/hfmodem/main.c @@ -638,6 +638,7 @@ __initfunc(int init_module(void)) 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 @@ __initfunc(void hfmodem_init(void)) 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) |