summaryrefslogtreecommitdiffstats
path: root/sound/synth/emux/emux.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-01-19 11:41:13 +0100
committerTakashi Iwai <tiwai@suse.de>2015-01-19 11:41:13 +0100
commitabd083526af3a8a1610e884c8e619925c3d663e6 (patch)
tree4a5102f0116722c05eb169e36c099b104c351bfb /sound/synth/emux/emux.c
parentALSA: aica: Use setup_timer() and mod_timer() (diff)
downloadlinux-abd083526af3a8a1610e884c8e619925c3d663e6.tar.xz
linux-abd083526af3a8a1610e884c8e619925c3d663e6.zip
ALSA: emux: 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/synth/emux/emux.c')
-rw-r--r--sound/synth/emux/emux.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/synth/emux/emux.c b/sound/synth/emux/emux.c
index f27a1c85f81b..49195325fdf6 100644
--- a/sound/synth/emux/emux.c
+++ b/sound/synth/emux/emux.c
@@ -53,9 +53,7 @@ int snd_emux_new(struct snd_emux **remu)
emu->max_voices = 0;
emu->use_time = 0;
- init_timer(&emu->tlist);
- emu->tlist.function = snd_emux_timer_callback;
- emu->tlist.data = (unsigned long)emu;
+ setup_timer(&emu->tlist, snd_emux_timer_callback, (unsigned long)emu);
emu->timer_active = 0;
*remu = emu;