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

Next file: linux/drivers/sound/wavfront.c
Previous file: linux/drivers/sound/sound_config.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.110/linux/drivers/sound/soundcard.c linux/drivers/sound/soundcard.c
@@ -836,8 +836,8 @@
 		audio_init_devices();
 	}
 #endif
-
-
+	if (proc_register(&proc_root, &proc_root_sound))
+		printk(KERN_ERR "sound: registering /proc/sound failed\n");
 }
 
 static int      sound[20] = {
@@ -875,8 +875,6 @@
 	if (sound_nblocks >= 1024)
 		printk(KERN_ERR "Sound warning: Deallocation table was too small.\n");
 	
-	if (proc_register(&proc_root, &proc_root_sound))
-		printk(KERN_ERR "sound: registering /proc/sound failed\n");
 	return 0;
 }
 

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