diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-02-16 20:40:26 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-02-16 20:40:26 -0500 |
commit | ccf352894ceef79d40d015e1deee4c46c3aa42ed (patch) | |
tree | e30b2b8a4c30e2ef1719ce9780322e671ebe3c43 /drivers/ide/arm | |
parent | 7469aaf6a30f4187ed6de7c0aed5c2dd2d1c2d31 (diff) |
ide: make ide_hwif_t.ide_dma_host_on void (v2)
* since ide_hwif_t.ide_dma_host_on is called either when drive->using_dma == 1
or when return value is discarded make it void, also drop "ide_" prefix
* make __ide_dma_host_on() void and drop "__" prefix
v2:
* while at it rename atiixp_ide_dma_host_on() to atiixp_dma_host_on()
and sgiioc4_ide_dma_host_on() to sgiioc4_dma_host_on().
[ Noticed 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 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/ide/arm/icside.c b/drivers/ide/arm/icside.c index de3739270bc0..40e5c66b81ce 100644 --- a/drivers/ide/arm/icside.c +++ b/drivers/ide/arm/icside.c | |||
@@ -316,15 +316,15 @@ static void icside_dma_off_quietly(ide_drive_t *drive) | |||
316 | drive->using_dma = 0; | 316 | drive->using_dma = 0; |
317 | } | 317 | } |
318 | 318 | ||
319 | static int icside_dma_host_on(ide_drive_t *drive) | 319 | static void icside_dma_host_on(ide_drive_t *drive) |
320 | { | 320 | { |
321 | return 0; | ||
322 | } | 321 | } |
323 | 322 | ||
324 | static int icside_dma_on(ide_drive_t *drive) | 323 | static int icside_dma_on(ide_drive_t *drive) |
325 | { | 324 | { |
326 | drive->using_dma = 1; | 325 | drive->using_dma = 1; |
327 | return icside_dma_host_on(drive); | 326 | |
327 | return 0; | ||
328 | } | 328 | } |
329 | 329 | ||
330 | static int icside_dma_check(ide_drive_t *drive) | 330 | static int icside_dma_check(ide_drive_t *drive) |
@@ -494,7 +494,7 @@ static void icside_dma_init(ide_hwif_t *hwif) | |||
494 | hwif->ide_dma_check = icside_dma_check; | 494 | hwif->ide_dma_check = icside_dma_check; |
495 | hwif->dma_host_off = icside_dma_host_off; | 495 | hwif->dma_host_off = icside_dma_host_off; |
496 | hwif->dma_off_quietly = icside_dma_off_quietly; | 496 | hwif->dma_off_quietly = icside_dma_off_quietly; |
497 | hwif->ide_dma_host_on = icside_dma_host_on; | 497 | hwif->dma_host_on = icside_dma_host_on; |
498 | hwif->ide_dma_on = icside_dma_on; | 498 | hwif->ide_dma_on = icside_dma_on; |
499 | hwif->dma_setup = icside_dma_setup; | 499 | hwif->dma_setup = icside_dma_setup; |
500 | hwif->dma_exec_cmd = icside_dma_exec_cmd; | 500 | hwif->dma_exec_cmd = icside_dma_exec_cmd; |