patch-2.2.0-pre6 linux/drivers/sound/gus_card.c

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

diff -u --recursive --new-file v2.2.0-pre5/linux/drivers/sound/gus_card.c linux/drivers/sound/gus_card.c
@@ -128,17 +128,20 @@
 {
 	unsigned char src;
 	extern int gus_timer_enabled;
-	struct address_info *hw_config=dev_id;
 
 	sti();
 
 #ifdef CONFIG_GUSMAX
-	if (have_gus_max)
+	if (have_gus_max) {
+		struct address_info *hw_config = dev_id;
 		adintr(irq, (void *)hw_config->slots[1], NULL);
+	}
 #endif
 #ifdef CONFIG_GUS16
-	if (db16)
+	if (db16) {
+		struct address_info *hw_config = dev_id;
 		adintr(irq, (void *)hw_config->slots[3], NULL);
+	}
 #endif
 
 	while (1)

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