patch-pre2.0.10 linux/drivers/sound/pss.c

Next file: linux/fs/Config.in
Previous file: linux/drivers/net/de4x5.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file pre2.0.9/linux/drivers/sound/pss.c linux/drivers/sound/pss.c
@@ -779,9 +779,9 @@
 long
 attach_pss_mpu (long mem_start, struct address_info *hw_config)
 {
+#if (defined(CONFIG_MPU401) || defined(CONFIG_MPU_EMU)) && defined(CONFIG_MIDI)
   long            ret;
 
-#if (defined(CONFIG_MPU401) || defined(CONFIG_MPU_EMU)) && defined(CONFIG_MIDI)
   {
     int             prev_devs;
     prev_devs = num_midis;
@@ -790,8 +790,10 @@
     if (num_midis == (prev_devs + 1))	/* The MPU driver installed itself */
       midi_devs[prev_devs]->coproc = &pss_coproc_operations;
   }
-#endif
   return ret;
+#else
+  return mem_start;
+#endif
 }
 
 int
@@ -863,7 +865,9 @@
 void
 unload_pss_mpu (struct address_info *hw_config)
 {
+#if (defined(CONFIG_MPU401) || defined(CONFIG_MPU_EMU)) && defined(CONFIG_MIDI)
   unload_mpu401 (hw_config);
+#endif
 }
 
 void

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this