ide: destroy DMA mappings after ending DMA (v2)
[firefly-linux-kernel-4.4.55.git] / drivers / ide / trm290.c
index d6a950828e9f1f518704f8dd8c94195e3c91ddd3..8dd3d82268707dcd2d2241d5b6b8f58fb8e641e0 100644 (file)
@@ -216,8 +216,7 @@ static int trm290_dma_end(ide_drive_t *drive)
        u16 status;
 
        drive->waiting_for_dma = 0;
-       /* purge DMA mappings */
-       ide_destroy_dmatable(drive);
+
        status = inw(drive->hwif->dma_base + 2);
 
        return status != 0x00ff;