patch-2.2.4 linux/drivers/sound/gus_card.c

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

diff -u --recursive --new-file v2.2.3/linux/drivers/sound/gus_card.c linux/drivers/sound/gus_card.c
@@ -44,8 +44,6 @@
 
 void attach_gus_card(struct address_info *hw_config)
 {
-	if(request_irq(hw_config->irq, gusintr, 0,  "Gravis Ultrasound", hw_config)<0)
-		printk(KERN_ERR "gus_card.c: Unable to allocate IRQ %d\n", hw_config->irq);
 
 	gus_wave_init(hw_config);
 
@@ -60,6 +58,9 @@
 #ifdef CONFIG_MIDI
 	gus_midi_init(hw_config);
 #endif
+	if(request_irq(hw_config->irq, gusintr, 0,  "Gravis Ultrasound", hw_config)<0)
+		printk(KERN_ERR "gus_card.c: Unable to allocate IRQ %d\n", hw_config->irq);
+
 }
 
 int probe_gus(struct address_info *hw_config)

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