patch-2.4.20 linux-2.4.20/drivers/sound/es1370.c

Next file: linux-2.4.20/drivers/sound/es1371.c
Previous file: linux-2.4.20/drivers/sound/emu10k1/timer.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.19/drivers/sound/es1370.c linux-2.4.20/drivers/sound/es1370.c
@@ -2673,7 +2673,8 @@
 	}
 	set_fs(fs);
 	/* register gameport */
-	gameport_register_port(&s->gameport);
+	if(s->gameport.io)
+		gameport_register_port(&s->gameport);
 
 	/* store it in the driver field */
 	pci_set_drvdata(pcidev, s);

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