|
@@ -433,11 +433,9 @@ static int toneport_try_init(struct usb_interface *interface,
|
|
|
|
|
|
toneport_setup(toneport);
|
|
|
|
|
|
- init_timer(&toneport->timer);
|
|
|
- toneport->timer.expires = jiffies + TONEPORT_PCM_DELAY * HZ;
|
|
|
- toneport->timer.function = toneport_start_pcm;
|
|
|
- toneport->timer.data = (unsigned long)toneport;
|
|
|
- add_timer(&toneport->timer);
|
|
|
+ setup_timer(&toneport->timer, toneport_start_pcm,
|
|
|
+ (unsigned long)toneport);
|
|
|
+ mod_timer(&toneport->timer, jiffies + TONEPORT_PCM_DELAY * HZ);
|
|
|
|
|
|
return 0;
|
|
|
}
|