patch-2.1.122 linux/drivers/sound/dev_table.c

Next file: linux/drivers/sound/mad16.c
Previous file: linux/drivers/sound/ad1848.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.121/linux/drivers/sound/dev_table.c linux/drivers/sound/dev_table.c
@@ -534,6 +534,7 @@
 
 int sound_alloc_mididev(void)
 {
+#ifdef CONFIG_MIDI
 	int i = register_sound_midi(&oss_sound_fops);
 	if(i==-1)
 		return i;
@@ -541,6 +542,9 @@
 	if(i>=num_midis)
 		num_midis = i + 1;
 	return i;
+#else
+	return (-1);
+#endif
 }
 
 int sound_alloc_synthdev(void)

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