patch-2.3.48 linux/drivers/sound/opl3.c

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

diff -u --recursive --new-file v2.3.47/linux/drivers/sound/opl3.c linux/drivers/sound/opl3.c
@@ -1204,7 +1204,7 @@
 
 void cleanup_module(void)
 {
-	if (devc)
+	if (devc && io != -1)
 	{
 		if(devc->base)
 			release_region(devc->base,4);
@@ -1217,7 +1217,7 @@
 
 MODULE_PARM(io, "i");
 
-#endif
+#endif /* MODULE */
 
 EXPORT_SYMBOL(opl3_init);
 EXPORT_SYMBOL(opl3_detect);

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