summaryrefslogtreecommitdiff
path: root/sound/core
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-01-19 13:26:25 +0300
committerTakashi Iwai <tiwai@suse.de>2015-01-19 13:26:25 +0300
commitf169c10597bd55125fc5c9d0c63b8ebf6dd6b5b2 (patch)
treebdddeb854be2c2ca444957819b591e258d1380dd /sound/core
parent2a52b6eef7386cc19dfc0a2e82a7e23d807e51e5 (diff)
downloadlinux-f169c10597bd55125fc5c9d0c63b8ebf6dd6b5b2.tar.xz
ALSA: timer: Use setup_timer() and mod_timer()
No functional change, refactoring with the standard helpers. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
-rw-r--r--sound/core/timer.c4
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);