diff options
Diffstat (limited to 'drivers/sound/opl3.c')
-rw-r--r-- | drivers/sound/opl3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/sound/opl3.c b/drivers/sound/opl3.c index 7e005e754..acaf989ca 100644 --- a/drivers/sound/opl3.c +++ b/drivers/sound/opl3.c @@ -1204,7 +1204,7 @@ int init_module (void) void cleanup_module(void) { - if (devc) + if (devc && io != -1) { if(devc->base) release_region(devc->base,4); @@ -1217,7 +1217,7 @@ void cleanup_module(void) MODULE_PARM(io, "i"); -#endif +#endif /* MODULE */ EXPORT_SYMBOL(opl3_init); EXPORT_SYMBOL(opl3_detect); |