ide: destroy DMA mappings after ending DMA (v2)
[firefly-linux-kernel-4.4.55.git] / drivers / ide / ns87415.c
index 9039a373020ff90c064d86a3ab5c11d6add2f47e..9ad71a74f93f4210760d8306185ca284bfbdf403 100644 (file)
@@ -210,8 +210,6 @@ static int ns87415_dma_end(ide_drive_t *drive)
        /* from ERRATA: clear the INTR & ERROR bits */
        dma_cmd = inb(hwif->dma_base + ATA_DMA_CMD);
        outb(dma_cmd | 6, hwif->dma_base + ATA_DMA_CMD);
-       /* and free any DMA resources */
-       ide_destroy_dmatable(drive);
        /* verify good DMA status */
        return (dma_stat & 7) != 4;
 }