patch-2.1.129 linux/drivers/sound/soundcard.c

Next file: linux/drivers/video/Config.in
Previous file: linux/drivers/sound/dmasound.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.128/linux/drivers/sound/soundcard.c linux/drivers/sound/soundcard.c
@@ -292,11 +292,13 @@
         return len;
 }
 
+#ifdef CONFIG_PROC_FS
 static struct proc_dir_entry proc_root_sound = {
         PROC_SOUND, 5, "sound",
         S_IFREG | S_IRUGO, 1, 0, 0,
         0, NULL, sound_proc_get_info
 };
+#endif
 
 #ifndef MIN
 #define MIN(a,b) (((a) < (b)) ? (a) : (b))
@@ -842,8 +844,10 @@
 		audio_init_devices();
 	}
 #endif
+#ifdef CONFIG_PROC_FS
 	if (proc_register(&proc_root, &proc_root_sound))
 		printk(KERN_ERR "sound: registering /proc/sound failed\n");
+#endif		
 }
 
 static int      sound[20] = {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov