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/arm | |
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/arm')
-rw-r--r-- | drivers/ide/arm/icside.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/ide/arm/icside.c b/drivers/ide/arm/icside.c index d70442a37e34..3a8402bb5dc3 100644 --- a/drivers/ide/arm/icside.c +++ b/drivers/ide/arm/icside.c | |||
@@ -291,24 +291,10 @@ static void icside_dma_host_off(ide_drive_t *drive) | |||
291 | { | 291 | { |
292 | } | 292 | } |
293 | 293 | ||
294 | static void icside_dma_off_quietly(ide_drive_t *drive) | ||
295 | { | ||
296 | drive->using_dma = 0; | ||
297 | ide_toggle_bounce(drive, 0); | ||
298 | } | ||
299 | |||
300 | static void icside_dma_host_on(ide_drive_t *drive) | 294 | static void icside_dma_host_on(ide_drive_t *drive) |
301 | { | 295 | { |
302 | } | 296 | } |
303 | 297 | ||
304 | static int icside_dma_on(ide_drive_t *drive) | ||
305 | { | ||
306 | drive->using_dma = 1; | ||
307 | ide_toggle_bounce(drive, 1); | ||
308 | |||
309 | return 0; | ||
310 | } | ||
311 | |||
312 | static int icside_dma_end(ide_drive_t *drive) | 298 | static int icside_dma_end(ide_drive_t *drive) |
313 | { | 299 | { |
314 | ide_hwif_t *hwif = HWIF(drive); | 300 | ide_hwif_t *hwif = HWIF(drive); |
@@ -425,9 +411,7 @@ static void icside_dma_init(ide_hwif_t *hwif) | |||
425 | hwif->set_dma_mode = icside_set_dma_mode; | 411 | hwif->set_dma_mode = icside_set_dma_mode; |
426 | 412 | ||
427 | hwif->dma_host_off = icside_dma_host_off; | 413 | hwif->dma_host_off = icside_dma_host_off; |
428 | hwif->dma_off_quietly = icside_dma_off_quietly; | ||
429 | hwif->dma_host_on = icside_dma_host_on; | 414 | hwif->dma_host_on = icside_dma_host_on; |
430 | hwif->ide_dma_on = icside_dma_on; | ||
431 | hwif->dma_setup = icside_dma_setup; | 415 | hwif->dma_setup = icside_dma_setup; |
432 | hwif->dma_exec_cmd = icside_dma_exec_cmd; | 416 | hwif->dma_exec_cmd = icside_dma_exec_cmd; |
433 | hwif->dma_start = icside_dma_start; | 417 | hwif->dma_start = icside_dma_start; |