[ide] fix cleanup_module() in ide.c

DMA should be already released by ide_unregister()
(unless interface is still busy).
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent dacb88a6
......@@ -2501,11 +2501,8 @@ void cleanup_module (void)
{
int index;
for (index = 0; index < MAX_HWIFS; ++index) {
for (index = 0; index < MAX_HWIFS; ++index)
ide_unregister(index);
if (ide_hwifs[index].dma_base)
(void) ide_release_dma(&ide_hwifs[index]);
}
#ifdef CONFIG_PROC_FS
proc_ide_destroy();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment