aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/seq
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-02-11 16:39:51 -0500
committerTakashi Iwai <tiwai@suse.de>2015-02-12 05:35:11 -0500
commit72496edcf85e048b4c5373d518e4f27938d9594e (patch)
tree29f4a7a90c721f3dc44d02af7dd6003eaf7111b6 /sound/core/seq
parentb6a42670e074da39b5a9f990774359e0733ca9cd (diff)
ALSA: seq: Don't compile snd_seq_device_load_drivers() for built-in
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/seq')
-rw-r--r--sound/core/seq/seq_device.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sound/core/seq/seq_device.c b/sound/core/seq/seq_device.c
index a752a79a8d3a..075a66c0cc6a 100644
--- a/sound/core/seq/seq_device.c
+++ b/sound/core/seq/seq_device.c
@@ -198,19 +198,16 @@ void snd_seq_autoload_init(void)
198#endif 198#endif
199} 199}
200EXPORT_SYMBOL(snd_seq_autoload_init); 200EXPORT_SYMBOL(snd_seq_autoload_init);
201#else
202#define try_autoload(ops) /* NOP */
203#endif
204
205 201
206void snd_seq_device_load_drivers(void) 202void snd_seq_device_load_drivers(void)
207{ 203{
208#ifdef CONFIG_MODULES
209 queue_autoload_drivers(); 204 queue_autoload_drivers();
210 flush_work(&autoload_work); 205 flush_work(&autoload_work);
211#endif
212} 206}
213EXPORT_SYMBOL(snd_seq_device_load_drivers); 207EXPORT_SYMBOL(snd_seq_device_load_drivers);
208#else
209#define try_autoload(ops) /* NOP */
210#endif
214 211
215/* 212/*
216 * register a sequencer device 213 * register a sequencer device