diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-26 14:13:01 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-26 14:13:01 -0500 |
commit | 4a546e046d562bcd389149591fa5a534c8f832ca (patch) | |
tree | ffc5c7bd088a0bf74744721b9cfcf18220a75fdf /drivers/ide/ide.c | |
parent | 378f577f7f75aa18a0eeafb044a491dcd5aeaa3d (diff) |
ide: remove ->ide_dma_on and ->dma_off_quietly methods from ide_hwif_t
* Make ide_dma_off_quietly() and __ide_dma_on() always available.
* Drop "__" prefix from __ide_dma_on().
* Check for presence of ->dma_host_on instead of ->ide_dma_on.
* Convert all users of ->ide_dma_on and ->dma_off_quietly methods
to use ide_dma_on() and ide_dma_off_quietly() instead.
* Remove no longer needed ->ide_dma_on and ->dma_off_quietly methods
from ide_hwif_t.
* Make ide_dma_on() void.
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.c')
-rw-r--r-- | drivers/ide/ide.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c index c6d4f630e18..095ff34870d 100644 --- a/drivers/ide/ide.c +++ b/drivers/ide/ide.c | |||
@@ -437,8 +437,6 @@ static void ide_hwif_restore(ide_hwif_t *hwif, ide_hwif_t *tmp_hwif) | |||
437 | hwif->dma_exec_cmd = tmp_hwif->dma_exec_cmd; | 437 | hwif->dma_exec_cmd = tmp_hwif->dma_exec_cmd; |
438 | hwif->dma_start = tmp_hwif->dma_start; | 438 | hwif->dma_start = tmp_hwif->dma_start; |
439 | hwif->ide_dma_end = tmp_hwif->ide_dma_end; | 439 | hwif->ide_dma_end = tmp_hwif->ide_dma_end; |
440 | hwif->ide_dma_on = tmp_hwif->ide_dma_on; | ||
441 | hwif->dma_off_quietly = tmp_hwif->dma_off_quietly; | ||
442 | hwif->ide_dma_test_irq = tmp_hwif->ide_dma_test_irq; | 440 | hwif->ide_dma_test_irq = tmp_hwif->ide_dma_test_irq; |
443 | hwif->ide_dma_clear_irq = tmp_hwif->ide_dma_clear_irq; | 441 | hwif->ide_dma_clear_irq = tmp_hwif->ide_dma_clear_irq; |
444 | hwif->dma_host_on = tmp_hwif->dma_host_on; | 442 | hwif->dma_host_on = tmp_hwif->dma_host_on; |
@@ -836,7 +834,7 @@ int set_using_dma(ide_drive_t *drive, int arg) | |||
836 | if (!drive->id || !(drive->id->capability & 1)) | 834 | if (!drive->id || !(drive->id->capability & 1)) |
837 | goto out; | 835 | goto out; |
838 | 836 | ||
839 | if (hwif->ide_dma_on == NULL) | 837 | if (hwif->dma_host_on == NULL) |
840 | goto out; | 838 | goto out; |
841 | 839 | ||
842 | err = -EBUSY; | 840 | err = -EBUSY; |