aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/seq
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-07-09 04:28:41 -0400
committerJaroslav Kysela <perex@perex.cz>2008-07-10 03:32:58 -0400
commitee2da99782d717b264d5c309a2084ca85e9a64ff (patch)
tree63ef3e9706e4ea08397c23cfe9782c00805927c6 /sound/core/seq
parent7fc077fba5f8896c6fed3b35c5a10e7fdae82bbe (diff)
ALSA: remove CONFIG_KMOD from sound
A bunch of things in alsa depend on CONFIG_KMOD, use CONFIG_MODULES instead where the dependency is needed at all. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/core/seq')
-rw-r--r--sound/core/seq/seq_clientmgr.c2
-rw-r--r--sound/core/seq/seq_device.c6
2 files changed, 3 insertions, 5 deletions
diff --git a/sound/core/seq/seq_clientmgr.c b/sound/core/seq/seq_clientmgr.c
index 47cfa5186e34..7a1545d2d953 100644
--- a/sound/core/seq/seq_clientmgr.c
+++ b/sound/core/seq/seq_clientmgr.c
@@ -148,7 +148,7 @@ struct snd_seq_client *snd_seq_client_use_ptr(int clientid)
148 return NULL; 148 return NULL;
149 } 149 }
150 spin_unlock_irqrestore(&clients_lock, flags); 150 spin_unlock_irqrestore(&clients_lock, flags);
151#ifdef CONFIG_KMOD 151#ifdef CONFIG_MODULES
152 if (!in_interrupt()) { 152 if (!in_interrupt()) {
153 static char client_requested[SNDRV_SEQ_GLOBAL_CLIENTS]; 153 static char client_requested[SNDRV_SEQ_GLOBAL_CLIENTS];
154 static char card_requested[SNDRV_CARDS]; 154 static char card_requested[SNDRV_CARDS];
diff --git a/sound/core/seq/seq_device.c b/sound/core/seq/seq_device.c
index 2f00ad28a2b7..05410e536a4f 100644
--- a/sound/core/seq/seq_device.c
+++ b/sound/core/seq/seq_device.c
@@ -124,7 +124,7 @@ static void snd_seq_device_info(struct snd_info_entry *entry,
124 * load all registered drivers (called from seq_clientmgr.c) 124 * load all registered drivers (called from seq_clientmgr.c)
125 */ 125 */
126 126
127#ifdef CONFIG_KMOD 127#ifdef CONFIG_MODULES
128/* avoid auto-loading during module_init() */ 128/* avoid auto-loading during module_init() */
129static int snd_seq_in_init; 129static int snd_seq_in_init;
130void snd_seq_autoload_lock(void) 130void snd_seq_autoload_lock(void)
@@ -140,7 +140,7 @@ void snd_seq_autoload_unlock(void)
140 140
141void snd_seq_device_load_drivers(void) 141void snd_seq_device_load_drivers(void)
142{ 142{
143#ifdef CONFIG_KMOD 143#ifdef CONFIG_MODULES
144 struct ops_list *ops; 144 struct ops_list *ops;
145 145
146 /* Calling request_module during module_init() 146 /* Calling request_module during module_init()
@@ -566,7 +566,5 @@ EXPORT_SYMBOL(snd_seq_device_load_drivers);
566EXPORT_SYMBOL(snd_seq_device_new); 566EXPORT_SYMBOL(snd_seq_device_new);
567EXPORT_SYMBOL(snd_seq_device_register_driver); 567EXPORT_SYMBOL(snd_seq_device_register_driver);
568EXPORT_SYMBOL(snd_seq_device_unregister_driver); 568EXPORT_SYMBOL(snd_seq_device_unregister_driver);
569#ifdef CONFIG_KMOD
570EXPORT_SYMBOL(snd_seq_autoload_lock); 569EXPORT_SYMBOL(snd_seq_autoload_lock);
571EXPORT_SYMBOL(snd_seq_autoload_unlock); 570EXPORT_SYMBOL(snd_seq_autoload_unlock);
572#endif