summaryrefslogtreecommitdiffstats
path: root/sound/pci/echoaudio
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-01-19 11:33:20 +0100
committerTakashi Iwai <tiwai@suse.de>2015-01-19 11:33:20 +0100
commit8a3e7dfc90dcb2ed6e79b559ce072aeaec291ebd (patch)
treeaafe367f3db09965eef6731b1dc653bd3ce1e0b7 /sound/pci/echoaudio
parent6fec2b57239fa253829912ac0ab76375da8e879d (diff)
downloadop-kernel-dev-8a3e7dfc90dcb2ed6e79b559ce072aeaec291ebd.zip
op-kernel-dev-8a3e7dfc90dcb2ed6e79b559ce072aeaec291ebd.tar.gz
ALSA: echoaudio: 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/pci/echoaudio')
-rw-r--r--sound/pci/echoaudio/midi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/pci/echoaudio/midi.c b/sound/pci/echoaudio/midi.c
index d913749..a8fe583 100644
--- a/sound/pci/echoaudio/midi.c
+++ b/sound/pci/echoaudio/midi.c
@@ -257,9 +257,8 @@ static void snd_echo_midi_output_trigger(struct snd_rawmidi_substream *substream
spin_lock_irq(&chip->lock);
if (up) {
if (!chip->tinuse) {
- init_timer(&chip->timer);
- chip->timer.function = snd_echo_midi_output_write;
- chip->timer.data = (unsigned long)chip;
+ setup_timer(&chip->timer, snd_echo_midi_output_write,
+ (unsigned long)chip);
chip->tinuse = 1;
}
} else {
OpenPOWER on IntegriCloud