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 /sound/core/timer.c | |
parent | 2a52b6eef7386cc19dfc0a2e82a7e23d807e51e5 (diff) | |
download | op-kernel-dev-f169c10597bd55125fc5c9d0c63b8ebf6dd6b5b2.zip op-kernel-dev-f169c10597bd55125fc5c9d0c63b8ebf6dd6b5b2.tar.gz |
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/timer.c')
-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 777a45e..a442355 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); |