diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-26 14:13:03 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-26 14:13:03 -0500 |
commit | 15ce926ada545cb078711bd9a18c083c93fa01d7 (patch) | |
tree | 9496cda87cae6ef3390c5f350741ad75418dfe8d /drivers/ide/ide-iops.c | |
parent | f37aaf9edeba3f4ae10d22aefc09c06af9ea39b6 (diff) |
ide: merge ->dma_host_{on,off} methods into ->dma_host_set method
Merge ->dma_host_{on,off} methods into ->dma_host_set method
which takes 'int on' argument.
There should be no functionality 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/ide-iops.c')
-rw-r--r-- | drivers/ide/ide-iops.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/ide/ide-iops.c b/drivers/ide/ide-iops.c index e30f67e09b9c..595a5cef41a2 100644 --- a/drivers/ide/ide-iops.c +++ b/drivers/ide/ide-iops.c | |||
@@ -742,8 +742,8 @@ int ide_config_drive_speed(ide_drive_t *drive, u8 speed) | |||
742 | // msleep(50); | 742 | // msleep(50); |
743 | 743 | ||
744 | #ifdef CONFIG_BLK_DEV_IDEDMA | 744 | #ifdef CONFIG_BLK_DEV_IDEDMA |
745 | if (hwif->dma_host_on) /* check if host supports DMA */ | 745 | if (hwif->dma_host_set) /* check if host supports DMA */ |
746 | hwif->dma_host_off(drive); | 746 | hwif->dma_host_set(drive, 0); |
747 | #endif | 747 | #endif |
748 | 748 | ||
749 | /* Skip setting PIO flow-control modes on pre-EIDE drives */ | 749 | /* Skip setting PIO flow-control modes on pre-EIDE drives */ |
@@ -801,8 +801,8 @@ int ide_config_drive_speed(ide_drive_t *drive, u8 speed) | |||
801 | #ifdef CONFIG_BLK_DEV_IDEDMA | 801 | #ifdef CONFIG_BLK_DEV_IDEDMA |
802 | if ((speed >= XFER_SW_DMA_0 || (hwif->host_flags & IDE_HFLAG_VDMA)) && | 802 | if ((speed >= XFER_SW_DMA_0 || (hwif->host_flags & IDE_HFLAG_VDMA)) && |
803 | drive->using_dma) | 803 | drive->using_dma) |
804 | hwif->dma_host_on(drive); | 804 | hwif->dma_host_set(drive, 1); |
805 | else if (hwif->dma_host_on) /* check if host supports DMA */ | 805 | else if (hwif->dma_host_set) /* check if host supports DMA */ |
806 | ide_dma_off_quietly(drive); | 806 | ide_dma_off_quietly(drive); |
807 | #endif | 807 | #endif |
808 | 808 | ||