diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-02-12 16:20:24 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-02-12 16:42:31 +0300 |
commit | 54a721abd7953a58e5479065c0cfdd8679d785c9 (patch) | |
tree | 9b16bb0c1901cafb16cfd06f4f77a7bd08b8b0f2 /sound/core/seq/seq_midi.c | |
parent | 056622053b8ae02978678ac1321b5bd956e7c812 (diff) | |
download | linux-54a721abd7953a58e5479065c0cfdd8679d785c9.tar.xz |
ALSA: seq: Drop snd_seq_autoload_lock() and _unlock()
The autoload lock became already superfluous due to the recent rework
of autoload code. Let's drop them now. This allows us to simplify a
few codes nicely.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/seq/seq_midi.c')
-rw-r--r-- | sound/core/seq/seq_midi.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/sound/core/seq/seq_midi.c b/sound/core/seq/seq_midi.c index 79c73119cedc..5dd0ee258359 100644 --- a/sound/core/seq/seq_midi.c +++ b/sound/core/seq/seq_midi.c @@ -469,20 +469,4 @@ static struct snd_seq_driver seq_midisynth_driver = { .argsize = 0, }; -static int __init alsa_seq_midi_init(void) -{ - int err; - - snd_seq_autoload_lock(); - err = snd_seq_driver_register(&seq_midisynth_driver); - snd_seq_autoload_unlock(); - return err; -} - -static void __exit alsa_seq_midi_exit(void) -{ - snd_seq_driver_unregister(&seq_midisynth_driver); -} - -module_init(alsa_seq_midi_init) -module_exit(alsa_seq_midi_exit) +module_snd_seq_driver(seq_midisynth_driver); |