patch-2.4.0-test7 linux/drivers/sound/ymf_sb.c

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

diff -u --recursive --new-file v2.4.0-test6/linux/drivers/sound/ymf_sb.c linux/drivers/sound/ymf_sb.c
@@ -54,7 +54,6 @@
 #include <asm/io.h>
 
 #include "sound_config.h"
-#include "soundmodule.h"
 #include "sb.h"
 
 #include "724hwmcode.h"
@@ -64,11 +63,6 @@
 
 /* ---------------------------------------------------------------------- */
 
-#ifndef SOUND_LOCK
-#define SOUND_LOCK do {} while (0)
-#define SOUND_LOCK_END do {} while (0)
-#endif
-
 #ifndef PCI_VENDOR_ID_YAMAHA
 #define PCI_VENDOR_ID_YAMAHA  0x1073
 #endif
@@ -641,7 +635,7 @@
 
 static void __init ymf7xxsb_attach_sb(struct address_info *hw_config)
 {
-	if(!sb_dsp_init(hw_config))
+	if(!sb_dsp_init(hw_config, THIS_MODULE))
 		hw_config->slots[0] = -1;
 }
 
@@ -784,7 +778,7 @@
 			ymf7xxsb_unload_sb (&sb_data[cards], 0);
 			return -ENODEV;
 		}
-		ymf7xxsb_attach_midi (&mpu_data[cards]);
+		ymf7xxsb_attach_midi (&mpu_data[cards], THIS_MODULE);
 	}
 #endif
 
@@ -804,11 +798,6 @@
 {
 	int i;
 
-	/*
-	 *	Binds us to the sound subsystem	
-	 */
-	SOUND_LOCK;
-
 	if ( master_vol < 0 ) master_vol  = 50;
 	if ( master_vol > 100 ) master_vol = 100;
 
@@ -816,10 +805,8 @@
 		ymfbase[i] = NULL;
 
 	i = pci_module_init (&ymf7xxsb_driver);
-	if (i < 0) {
-		SOUND_LOCK_END;
+	if (i < 0)
 		return i;
-	}
 
 	printk (KERN_INFO PFX YMFSB_CARD_NAME " loaded\n");
 	
@@ -853,10 +840,6 @@
 
 	free_iomaps();
 
-	/*
-	 *	Final clean up with the sound layer
-	 */
-	SOUND_LOCK_END;
 }
 
 MODULE_AUTHOR("Daisuke Nagano, breeze.nagano@nifty.ne.jp");

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)