]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ALSA: echoaudio: Use setup_timer() and mod_timer()
authorTakashi Iwai <tiwai@suse.de>
Mon, 19 Jan 2015 10:33:20 +0000 (11:33 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 19 Jan 2015 10:33:20 +0000 (11:33 +0100)
No functional change, refactoring with the standard helpers.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/echoaudio/midi.c

index d913749d154a352928fcab83bcafc71b134138f6..a8fe58335ddc0659aa19113266fc657860618ac5 100644 (file)
@@ -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 {