diff options
Diffstat (limited to 'drivers/ide/scc_pata.c')
-rw-r--r-- | drivers/ide/scc_pata.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ide/scc_pata.c b/drivers/ide/scc_pata.c index 2cdf51d8917a..542419ffa9b7 100644 --- a/drivers/ide/scc_pata.c +++ b/drivers/ide/scc_pata.c | |||
@@ -335,7 +335,7 @@ static int scc_dma_setup(ide_drive_t *drive, struct ide_cmd *cmd) | |||
335 | 335 | ||
336 | /* clear INTR & ERROR flags */ | 336 | /* clear INTR & ERROR flags */ |
337 | out_be32((void __iomem *)(hwif->dma_base + 4), dma_stat | 6); | 337 | out_be32((void __iomem *)(hwif->dma_base + 4), dma_stat | 6); |
338 | drive->waiting_for_dma = 1; | 338 | |
339 | return 0; | 339 | return 0; |
340 | } | 340 | } |
341 | 341 | ||
@@ -354,7 +354,6 @@ static int __scc_dma_end(ide_drive_t *drive) | |||
354 | ide_hwif_t *hwif = drive->hwif; | 354 | ide_hwif_t *hwif = drive->hwif; |
355 | u8 dma_stat, dma_cmd; | 355 | u8 dma_stat, dma_cmd; |
356 | 356 | ||
357 | drive->waiting_for_dma = 0; | ||
358 | /* get DMA command mode */ | 357 | /* get DMA command mode */ |
359 | dma_cmd = scc_ide_inb(hwif->dma_base); | 358 | dma_cmd = scc_ide_inb(hwif->dma_base); |
360 | /* stop DMA */ | 359 | /* stop DMA */ |