diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-03-02 02:36:47 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-03-02 02:36:47 +0000 |
commit | 8624512aa908741ba2795200133eae0d7f4557ea (patch) | |
tree | d5d3036fccf2604f4c98dedc11e8adb929d6b52e /drivers/sound/opl3.c | |
parent | 7b8f5d6f1d45d9f9de1d26e7d3c32aa5af11b488 (diff) |
Merge with 2.3.48.
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); |