diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-05-15 18:51:46 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-05-15 18:51:46 -0400 |
commit | 4728d546d7137ad5350cc2e53d4748fd26f61a60 (patch) | |
tree | 73cd688f1f16b1d04a23958e7110ba3f70def531 /drivers/ide/ide-dma.c | |
parent | 46cedc9b773795b6190c31e5d32de5207b55a356 (diff) |
ide: remove ide_dma_enable()
* check ->speedproc return value in ide_tune_dma()
* use ide_tune_dma() in cmd64x/cs5530/sc1200/siimage/sl82c105/scc_pata drivers
* remove no longer needed ide_dma_enable()
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-dma.c')
-rw-r--r-- | drivers/ide/ide-dma.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/ide/ide-dma.c b/drivers/ide/ide-dma.c index 5fe85191d49c..de33e6f88f17 100644 --- a/drivers/ide/ide-dma.c +++ b/drivers/ide/ide-dma.c | |||
@@ -792,9 +792,10 @@ int ide_tune_dma(ide_drive_t *drive) | |||
792 | if (!speed) | 792 | if (!speed) |
793 | return 0; | 793 | return 0; |
794 | 794 | ||
795 | drive->hwif->speedproc(drive, speed); | 795 | if (drive->hwif->speedproc(drive, speed)) |
796 | return 0; | ||
796 | 797 | ||
797 | return ide_dma_enable(drive); | 798 | return 1; |
798 | } | 799 | } |
799 | 800 | ||
800 | EXPORT_SYMBOL_GPL(ide_tune_dma); | 801 | EXPORT_SYMBOL_GPL(ide_tune_dma); |