diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-31 14:15:22 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-31 14:15:22 -0400 |
commit | 88b4132e101e60e8fa67996ae3072ab6b71e8500 (patch) | |
tree | 6b65c2d0d8691c577d60e6d1f84ad6db172a82d7 /drivers/ide/sgiioc4.c | |
parent | 11998b316173f814698f9037ce9179d634d1f423 (diff) |
ide: set/clear drive->waiting_for_dma flag in the core code
Set/clear drive->waiting_for_dma flag in the core code
instead of in ->dma_setup and ->dma_end methods.
There should be no functional changes caused by this patch.
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/sgiioc4.c')
-rw-r--r-- | drivers/ide/sgiioc4.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/ide/sgiioc4.c b/drivers/ide/sgiioc4.c index d90e8c5af0a2..cb2657c4c976 100644 --- a/drivers/ide/sgiioc4.c +++ b/drivers/ide/sgiioc4.c | |||
@@ -258,8 +258,6 @@ static int sgiioc4_dma_end(ide_drive_t *drive) | |||
258 | } | 258 | } |
259 | } | 259 | } |
260 | 260 | ||
261 | drive->waiting_for_dma = 0; | ||
262 | |||
263 | return dma_stat; | 261 | return dma_stat; |
264 | } | 262 | } |
265 | 263 | ||
@@ -412,7 +410,6 @@ sgiioc4_configure_for_dma(int dma_direction, ide_drive_t * drive) | |||
412 | writel(ending_dma_addr, (void __iomem *)(dma_base + IOC4_DMA_END_ADDR * 4)); | 410 | writel(ending_dma_addr, (void __iomem *)(dma_base + IOC4_DMA_END_ADDR * 4)); |
413 | 411 | ||
414 | writel(dma_direction, (void __iomem *)ioc4_dma_addr); | 412 | writel(dma_direction, (void __iomem *)ioc4_dma_addr); |
415 | drive->waiting_for_dma = 1; | ||
416 | } | 413 | } |
417 | 414 | ||
418 | /* IOC4 Scatter Gather list Format */ | 415 | /* IOC4 Scatter Gather list Format */ |