diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-03-11 07:50:15 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-03-11 07:53:52 -0400 |
commit | 4945f1fdc14ef090abe50d1b5682bfc1e4763c06 (patch) | |
tree | 035ae743dc238482b44d43130d262fa20952f8c8 /sound/core/seq | |
parent | ec0e9937aaa8b0a4b0633711c4d70d622acd9a7f (diff) |
ALSA: seq: Fix init order of snd_seq_device stuff
When the sequencer driver is built in kernel, it may panic at boot
because of the uninitialized snd_seq_bus_type. Initialize it properly
via subsys_initcall() instead of module_init() to assure that the bus
is registered beforehand.
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Fixes: 7c37ae5c625a ('ALSA: seq: Rewrite sequencer device binding with standard bus')
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/seq')
-rw-r--r-- | sound/core/seq/seq_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/seq/seq_device.c b/sound/core/seq/seq_device.c index 355b34269bd1..d99f99d61983 100644 --- a/sound/core/seq/seq_device.c +++ b/sound/core/seq/seq_device.c | |||
@@ -311,5 +311,5 @@ static void __exit alsa_seq_device_exit(void) | |||
311 | bus_unregister(&snd_seq_bus_type); | 311 | bus_unregister(&snd_seq_bus_type); |
312 | } | 312 | } |
313 | 313 | ||
314 | module_init(alsa_seq_device_init) | 314 | subsys_initcall(alsa_seq_device_init) |
315 | module_exit(alsa_seq_device_exit) | 315 | module_exit(alsa_seq_device_exit) |