projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fec2b5
)
ALSA: echoaudio: Use setup_timer() and mod_timer()
author
Takashi Iwai
<tiwai@suse.de>
Mon, 19 Jan 2015 10:33:20 +0000
(11:33 +0100)
committer
Takashi 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
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/echoaudio/midi.c
b/sound/pci/echoaudio/midi.c
index d913749d154a352928fcab83bcafc71b134138f6..a8fe58335ddc0659aa19113266fc657860618ac5 100644
(file)
--- 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 {