aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/sgiioc4.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-03-31 14:15:24 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-03-31 14:15:24 -0400
commitf094d4d83bccee9277ddb6aadccf35747889426b (patch)
treea4cd886f42d6ab13b507c23b08f2064ceba04623 /drivers/ide/sgiioc4.c
parent88b4132e101e60e8fa67996ae3072ab6b71e8500 (diff)
ide: sanitize ide_build_sglist() and ide_destroy_dmatable()
* Move ide_map_sg() calls out from ide_build_sglist() to ide_dma_prepare(). * Pass command to ide_destroy_dmatable(). * Rename ide_build_sglist() to ide_dma_map_sg() and ide_destroy_dmatable() to ide_dma_unmap_sg(). There should be no functional changes caused by this patch. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/sgiioc4.c')
-rw-r--r--drivers/ide/sgiioc4.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/ide/sgiioc4.c b/drivers/ide/sgiioc4.c
index cb2657c4c976..6ef5a567d377 100644
--- a/drivers/ide/sgiioc4.c
+++ b/drivers/ide/sgiioc4.c
@@ -277,11 +277,12 @@ static void sgiioc4_dma_host_set(ide_drive_t *drive, int on)
277 sgiioc4_clearirq(drive); 277 sgiioc4_clearirq(drive);
278} 278}
279 279
280static void 280static void sgiioc4_resetproc(ide_drive_t *drive)
281sgiioc4_resetproc(ide_drive_t * drive)
282{ 281{
282 struct ide_cmd *cmd = &drive->hwif->cmd;
283
283 sgiioc4_dma_end(drive); 284 sgiioc4_dma_end(drive);
284 ide_destroy_dmatable(drive); 285 ide_dma_unmap_sg(drive, cmd);
285 sgiioc4_clearirq(drive); 286 sgiioc4_clearirq(drive);
286} 287}
287 288