summaryrefslogtreecommitdiffstats
path: root/sound/pci/ca0106/ca0106_proc.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-12-01 10:49:58 +0100
committerJaroslav Kysela <perex@suse.cz>2006-01-03 12:30:08 +0100
commitadf1b3d25e50dbab48fdd21006bea2dd5a4cb3a8 (patch)
treee520ddca1f0cd5e9bb9afd14f3f226e2b1596e9a /sound/pci/ca0106/ca0106_proc.c
parent[ALSA] dbri - Don't return errors without CONFIG_PROC_FS (diff)
downloadlinux-adf1b3d25e50dbab48fdd21006bea2dd5a4cb3a8.tar.xz
linux-adf1b3d25e50dbab48fdd21006bea2dd5a4cb3a8.zip
[ALSA] Optimize for config without PROC_FS (pci drivers)
Optimize the code when compiled without CONFIG_PROC_FS for some pci drivers. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ca0106/ca0106_proc.c')
-rw-r--r--sound/pci/ca0106/ca0106_proc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/pci/ca0106/ca0106_proc.c b/sound/pci/ca0106/ca0106_proc.c
index 94b622599386..63757273bfb7 100644
--- a/sound/pci/ca0106/ca0106_proc.c
+++ b/sound/pci/ca0106/ca0106_proc.c
@@ -77,6 +77,8 @@
#include "ca0106.h"
+#ifdef CONFIG_PROC_FS
+
struct snd_ca0106_category_str {
int val;
const char *name;
@@ -459,3 +461,4 @@ int __devinit snd_ca0106_proc_init(struct snd_ca0106 * emu)
return 0;
}
+#endif /* CONFIG_PROC_FS */