Commit f169c105 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: timer: Use setup_timer() and mod_timer()

No functional change, refactoring with the standard helpers.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 2a52b6ee
...@@ -1030,9 +1030,7 @@ static int snd_timer_register_system(void) ...@@ -1030,9 +1030,7 @@ static int snd_timer_register_system(void)
snd_timer_free(timer); snd_timer_free(timer);
return -ENOMEM; return -ENOMEM;
} }
init_timer(&priv->tlist); setup_timer(&priv->tlist, snd_timer_s_function, (unsigned long) timer);
priv->tlist.function = snd_timer_s_function;
priv->tlist.data = (unsigned long) timer;
timer->private_data = priv; timer->private_data = priv;
timer->private_free = snd_timer_free_system; timer->private_free = snd_timer_free_system;
return snd_timer_global_register(timer); return snd_timer_global_register(timer);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment