diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-01-19 11:26:25 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-01-19 11:26:25 +0100 |
commit | f169c10597bd55125fc5c9d0c63b8ebf6dd6b5b2 (patch) | |
tree | bdddeb854be2c2ca444957819b591e258d1380dd | |
parent | ALSA: dummy: use setup_timer and mod_timer (diff) | |
download | linux-f169c10597bd55125fc5c9d0c63b8ebf6dd6b5b2.tar.xz linux-f169c10597bd55125fc5c9d0c63b8ebf6dd6b5b2.zip |
ALSA: timer: Use setup_timer() and mod_timer()
No functional change, refactoring with the standard helpers.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/core/timer.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/core/timer.c b/sound/core/timer.c index 777a45e08e53..a44235555896 100644 --- a/sound/core/timer.c +++ b/sound/core/timer.c @@ -1030,9 +1030,7 @@ static int snd_timer_register_system(void) snd_timer_free(timer); return -ENOMEM; } - init_timer(&priv->tlist); - priv->tlist.function = snd_timer_s_function; - priv->tlist.data = (unsigned long) timer; + setup_timer(&priv->tlist, snd_timer_s_function, (unsigned long) timer); timer->private_data = priv; timer->private_free = snd_timer_free_system; return snd_timer_global_register(timer); |