diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-31 14:15:24 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-31 14:15:24 -0400 |
commit | f094d4d83bccee9277ddb6aadccf35747889426b (patch) | |
tree | a4cd886f42d6ab13b507c23b08f2064ceba04623 /include/linux | |
parent | 88b4132e101e60e8fa67996ae3072ab6b71e8500 (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 'include/linux')
-rw-r--r-- | include/linux/ide.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index b350667b83ad..03c520917b7a 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -1445,8 +1445,7 @@ int ide_allocate_dma_engine(ide_hwif_t *); | |||
1445 | void ide_release_dma_engine(ide_hwif_t *); | 1445 | void ide_release_dma_engine(ide_hwif_t *); |
1446 | 1446 | ||
1447 | int ide_dma_prepare(ide_drive_t *, struct ide_cmd *); | 1447 | int ide_dma_prepare(ide_drive_t *, struct ide_cmd *); |
1448 | 1448 | void ide_dma_unmap_sg(ide_drive_t *, struct ide_cmd *); | |
1449 | void ide_destroy_dmatable(ide_drive_t *); | ||
1450 | 1449 | ||
1451 | #ifdef CONFIG_BLK_DEV_IDEDMA_SFF | 1450 | #ifdef CONFIG_BLK_DEV_IDEDMA_SFF |
1452 | int config_drive_for_dma(ide_drive_t *); | 1451 | int config_drive_for_dma(ide_drive_t *); |
@@ -1481,7 +1480,8 @@ static inline ide_startstop_t ide_dma_timeout_retry(ide_drive_t *drive, int erro | |||
1481 | static inline void ide_release_dma_engine(ide_hwif_t *hwif) { ; } | 1480 | static inline void ide_release_dma_engine(ide_hwif_t *hwif) { ; } |
1482 | static inline int ide_dma_prepare(ide_drive_t *drive, | 1481 | static inline int ide_dma_prepare(ide_drive_t *drive, |
1483 | struct ide_cmd *cmd) { return 1; } | 1482 | struct ide_cmd *cmd) { return 1; } |
1484 | static inline void ide_destroy_dmatable(ide_drive_t *drive) { ; } | 1483 | static inline void ide_dma_unmap_sg(ide_drive_t *drive, |
1484 | struct ide_cmd *cmd) { ; } | ||
1485 | #endif /* CONFIG_BLK_DEV_IDEDMA */ | 1485 | #endif /* CONFIG_BLK_DEV_IDEDMA */ |
1486 | 1486 | ||
1487 | #ifdef CONFIG_BLK_DEV_IDEACPI | 1487 | #ifdef CONFIG_BLK_DEV_IDEACPI |