diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-12-01 04:42:42 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:30:02 -0500 |
commit | e28563cceb9f258ebe3c50fc27d8f4ff0ac4bfa4 (patch) | |
tree | b69095abb998dedc2953368ba2c75978d80f644a /sound/core/sound_oss.c | |
parent | 7cd01dd840824e7c6023ad1dbfdb94a2183a7adb (diff) |
[ALSA] Optimize for config without PROC_FS
Modules: HWDEP Midlevel,ALSA Core,PCM Midlevel,Timer Midlevel
Optimize the code when compiled without CONFIG_PROC_FS.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/sound_oss.c')
-rw-r--r-- | sound/core/sound_oss.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sound/core/sound_oss.c b/sound/core/sound_oss.c index 3ae1c0d7ffd0..d0be32b517c1 100644 --- a/sound/core/sound_oss.c +++ b/sound/core/sound_oss.c | |||
@@ -244,11 +244,9 @@ static void snd_minor_info_oss_read(struct snd_info_entry *entry, | |||
244 | up(&sound_oss_mutex); | 244 | up(&sound_oss_mutex); |
245 | } | 245 | } |
246 | 246 | ||
247 | #endif /* CONFIG_PROC_FS */ | ||
248 | 247 | ||
249 | int __init snd_minor_info_oss_init(void) | 248 | int __init snd_minor_info_oss_init(void) |
250 | { | 249 | { |
251 | #ifdef CONFIG_PROC_FS | ||
252 | struct snd_info_entry *entry; | 250 | struct snd_info_entry *entry; |
253 | 251 | ||
254 | entry = snd_info_create_module_entry(THIS_MODULE, "devices", snd_oss_root); | 252 | entry = snd_info_create_module_entry(THIS_MODULE, "devices", snd_oss_root); |
@@ -261,17 +259,15 @@ int __init snd_minor_info_oss_init(void) | |||
261 | } | 259 | } |
262 | } | 260 | } |
263 | snd_minor_info_oss_entry = entry; | 261 | snd_minor_info_oss_entry = entry; |
264 | #endif | ||
265 | return 0; | 262 | return 0; |
266 | } | 263 | } |
267 | 264 | ||
268 | int __exit snd_minor_info_oss_done(void) | 265 | int __exit snd_minor_info_oss_done(void) |
269 | { | 266 | { |
270 | #ifdef CONFIG_PROC_FS | ||
271 | if (snd_minor_info_oss_entry) | 267 | if (snd_minor_info_oss_entry) |
272 | snd_info_unregister(snd_minor_info_oss_entry); | 268 | snd_info_unregister(snd_minor_info_oss_entry); |
273 | #endif | ||
274 | return 0; | 269 | return 0; |
275 | } | 270 | } |
271 | #endif /* CONFIG_PROC_FS */ | ||
276 | 272 | ||
277 | #endif /* CONFIG_SND_OSSEMUL */ | 273 | #endif /* CONFIG_SND_OSSEMUL */ |