summaryrefslogtreecommitdiffstats
path: root/sound/drivers/opl3/opl3_seq.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-01-19 11:28:54 +0100
committerTakashi Iwai <tiwai@suse.de>2015-01-19 11:32:26 +0100
commitf5d5f75fe167c8b80747290968aeaa91457cb10a (patch)
tree64beb65379de9f9bcd89283e6bf0571e69e78446 /sound/drivers/opl3/opl3_seq.c
parent2b1b78114319e0ed2b7ca8c75d9cde6d2bf8f9fc (diff)
downloadblackbird-op-linux-f5d5f75fe167c8b80747290968aeaa91457cb10a.tar.gz
blackbird-op-linux-f5d5f75fe167c8b80747290968aeaa91457cb10a.zip
ALSA: opl3: 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/drivers/opl3/opl3_seq.c')
-rw-r--r--sound/drivers/opl3/opl3_seq.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/drivers/opl3/opl3_seq.c b/sound/drivers/opl3/opl3_seq.c
index 68399538e435..a9f618e06a22 100644
--- a/sound/drivers/opl3/opl3_seq.c
+++ b/sound/drivers/opl3/opl3_seq.c
@@ -247,9 +247,7 @@ static int snd_opl3_seq_new_device(struct snd_seq_device *dev)
}
/* setup system timer */
- init_timer(&opl3->tlist);
- opl3->tlist.function = snd_opl3_timer_func;
- opl3->tlist.data = (unsigned long) opl3;
+ setup_timer(&opl3->tlist, snd_opl3_timer_func, (unsigned long) opl3);
spin_lock_init(&opl3->sys_timer_lock);
opl3->sys_timer_status = 0;
OpenPOWER on IntegriCloud