diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-07-09 04:28:41 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-07-10 03:32:58 -0400 |
commit | ee2da99782d717b264d5c309a2084ca85e9a64ff (patch) | |
tree | 63ef3e9706e4ea08397c23cfe9782c00805927c6 /sound | |
parent | 7fc077fba5f8896c6fed3b35c5a10e7fdae82bbe (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')
-rw-r--r-- | sound/core/seq/seq_clientmgr.c | 2 | ||||
-rw-r--r-- | sound/core/seq/seq_device.c | 6 | ||||
-rw-r--r-- | sound/core/sound.c | 8 | ||||
-rw-r--r-- | sound/core/timer.c | 6 | ||||
-rw-r--r-- | sound/ppc/daca.c | 2 | ||||
-rw-r--r-- | sound/ppc/tumbler.c | 2 |
6 files changed, 10 insertions, 16 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() */ |
129 | static int snd_seq_in_init; | 129 | static int snd_seq_in_init; |
130 | void snd_seq_autoload_lock(void) | 130 | void snd_seq_autoload_lock(void) |
@@ -140,7 +140,7 @@ void snd_seq_autoload_unlock(void) | |||
140 | 140 | ||
141 | void snd_seq_device_load_drivers(void) | 141 | void 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); | |||
566 | EXPORT_SYMBOL(snd_seq_device_new); | 566 | EXPORT_SYMBOL(snd_seq_device_new); |
567 | EXPORT_SYMBOL(snd_seq_device_register_driver); | 567 | EXPORT_SYMBOL(snd_seq_device_register_driver); |
568 | EXPORT_SYMBOL(snd_seq_device_unregister_driver); | 568 | EXPORT_SYMBOL(snd_seq_device_unregister_driver); |
569 | #ifdef CONFIG_KMOD | ||
570 | EXPORT_SYMBOL(snd_seq_autoload_lock); | 569 | EXPORT_SYMBOL(snd_seq_autoload_lock); |
571 | EXPORT_SYMBOL(snd_seq_autoload_unlock); | 570 | EXPORT_SYMBOL(snd_seq_autoload_unlock); |
572 | #endif | ||
diff --git a/sound/core/sound.c b/sound/core/sound.c index 6c8ab48c689a..09a94953745a 100644 --- a/sound/core/sound.c +++ b/sound/core/sound.c | |||
@@ -60,14 +60,14 @@ EXPORT_SYMBOL(snd_ecards_limit); | |||
60 | static struct snd_minor *snd_minors[SNDRV_OS_MINORS]; | 60 | static struct snd_minor *snd_minors[SNDRV_OS_MINORS]; |
61 | static DEFINE_MUTEX(sound_mutex); | 61 | static DEFINE_MUTEX(sound_mutex); |
62 | 62 | ||
63 | #ifdef CONFIG_KMOD | 63 | #ifdef CONFIG_MODULES |
64 | 64 | ||
65 | /** | 65 | /** |
66 | * snd_request_card - try to load the card module | 66 | * snd_request_card - try to load the card module |
67 | * @card: the card number | 67 | * @card: the card number |
68 | * | 68 | * |
69 | * Tries to load the module "snd-card-X" for the given card number | 69 | * Tries to load the module "snd-card-X" for the given card number |
70 | * via KMOD. Returns immediately if already loaded. | 70 | * via request_module. Returns immediately if already loaded. |
71 | */ | 71 | */ |
72 | void snd_request_card(int card) | 72 | void snd_request_card(int card) |
73 | { | 73 | { |
@@ -92,7 +92,7 @@ static void snd_request_other(int minor) | |||
92 | request_module(str); | 92 | request_module(str); |
93 | } | 93 | } |
94 | 94 | ||
95 | #endif /* request_module support */ | 95 | #endif /* modular kernel */ |
96 | 96 | ||
97 | /** | 97 | /** |
98 | * snd_lookup_minor_data - get user data of a registered device | 98 | * snd_lookup_minor_data - get user data of a registered device |
@@ -132,7 +132,7 @@ static int snd_open(struct inode *inode, struct file *file) | |||
132 | return -ENODEV; | 132 | return -ENODEV; |
133 | mptr = snd_minors[minor]; | 133 | mptr = snd_minors[minor]; |
134 | if (mptr == NULL) { | 134 | if (mptr == NULL) { |
135 | #ifdef CONFIG_KMOD | 135 | #ifdef CONFIG_MODULES |
136 | int dev = SNDRV_MINOR_DEVICE(minor); | 136 | int dev = SNDRV_MINOR_DEVICE(minor); |
137 | if (dev == SNDRV_MINOR_CONTROL) { | 137 | if (dev == SNDRV_MINOR_CONTROL) { |
138 | /* /dev/aloadC? */ | 138 | /* /dev/aloadC? */ |
diff --git a/sound/core/timer.c b/sound/core/timer.c index 9d8184a2c2d0..0af337efc64e 100644 --- a/sound/core/timer.c +++ b/sound/core/timer.c | |||
@@ -146,7 +146,7 @@ static struct snd_timer *snd_timer_find(struct snd_timer_id *tid) | |||
146 | return NULL; | 146 | return NULL; |
147 | } | 147 | } |
148 | 148 | ||
149 | #ifdef CONFIG_KMOD | 149 | #ifdef CONFIG_MODULES |
150 | 150 | ||
151 | static void snd_timer_request(struct snd_timer_id *tid) | 151 | static void snd_timer_request(struct snd_timer_id *tid) |
152 | { | 152 | { |
@@ -259,8 +259,8 @@ int snd_timer_open(struct snd_timer_instance **ti, | |||
259 | /* open a master instance */ | 259 | /* open a master instance */ |
260 | mutex_lock(®ister_mutex); | 260 | mutex_lock(®ister_mutex); |
261 | timer = snd_timer_find(tid); | 261 | timer = snd_timer_find(tid); |
262 | #ifdef CONFIG_KMOD | 262 | #ifdef CONFIG_MODULES |
263 | if (timer == NULL) { | 263 | if (!timer) { |
264 | mutex_unlock(®ister_mutex); | 264 | mutex_unlock(®ister_mutex); |
265 | snd_timer_request(tid); | 265 | snd_timer_request(tid); |
266 | mutex_lock(®ister_mutex); | 266 | mutex_lock(®ister_mutex); |
diff --git a/sound/ppc/daca.c b/sound/ppc/daca.c index ca9452901a50..8a5b29031933 100644 --- a/sound/ppc/daca.c +++ b/sound/ppc/daca.c | |||
@@ -249,9 +249,7 @@ int __init snd_pmac_daca_init(struct snd_pmac *chip) | |||
249 | int i, err; | 249 | int i, err; |
250 | struct pmac_daca *mix; | 250 | struct pmac_daca *mix; |
251 | 251 | ||
252 | #ifdef CONFIG_KMOD | ||
253 | request_module("i2c-powermac"); | 252 | request_module("i2c-powermac"); |
254 | #endif /* CONFIG_KMOD */ | ||
255 | 253 | ||
256 | mix = kzalloc(sizeof(*mix), GFP_KERNEL); | 254 | mix = kzalloc(sizeof(*mix), GFP_KERNEL); |
257 | if (! mix) | 255 | if (! mix) |
diff --git a/sound/ppc/tumbler.c b/sound/ppc/tumbler.c index 3f8d7164cef9..009df8dd37a8 100644 --- a/sound/ppc/tumbler.c +++ b/sound/ppc/tumbler.c | |||
@@ -1350,9 +1350,7 @@ int __init snd_pmac_tumbler_init(struct snd_pmac *chip) | |||
1350 | struct device_node *tas_node, *np; | 1350 | struct device_node *tas_node, *np; |
1351 | char *chipname; | 1351 | char *chipname; |
1352 | 1352 | ||
1353 | #ifdef CONFIG_KMOD | ||
1354 | request_module("i2c-powermac"); | 1353 | request_module("i2c-powermac"); |
1355 | #endif /* CONFIG_KMOD */ | ||
1356 | 1354 | ||
1357 | mix = kzalloc(sizeof(*mix), GFP_KERNEL); | 1355 | mix = kzalloc(sizeof(*mix), GFP_KERNEL); |
1358 | if (! mix) | 1356 | if (! mix) |