diff options
Diffstat (limited to 'drivers/ide/tx4939ide.c')
-rw-r--r-- | drivers/ide/tx4939ide.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/ide/tx4939ide.c b/drivers/ide/tx4939ide.c index 53f99853b06..f62ced855cf 100644 --- a/drivers/ide/tx4939ide.c +++ b/drivers/ide/tx4939ide.c | |||
@@ -335,11 +335,9 @@ static int tx4939ide_dma_end(ide_drive_t *drive) | |||
335 | /* read and clear the INTR & ERROR bits */ | 335 | /* read and clear the INTR & ERROR bits */ |
336 | dma_stat = tx4939ide_clear_dma_status(base); | 336 | dma_stat = tx4939ide_clear_dma_status(base); |
337 | 337 | ||
338 | /* purge DMA mappings */ | ||
339 | ide_destroy_dmatable(drive); | ||
340 | /* verify good DMA status */ | ||
341 | wmb(); | 338 | wmb(); |
342 | 339 | ||
340 | /* verify good DMA status */ | ||
343 | if ((dma_stat & (ATA_DMA_INTR | ATA_DMA_ERR | ATA_DMA_ACTIVE)) == 0 && | 341 | if ((dma_stat & (ATA_DMA_INTR | ATA_DMA_ERR | ATA_DMA_ACTIVE)) == 0 && |
344 | (ctl & (TX4939IDE_INT_XFEREND | TX4939IDE_INT_HOST)) == | 342 | (ctl & (TX4939IDE_INT_XFEREND | TX4939IDE_INT_HOST)) == |
345 | (TX4939IDE_INT_XFEREND | TX4939IDE_INT_HOST)) | 343 | (TX4939IDE_INT_XFEREND | TX4939IDE_INT_HOST)) |