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/ppc | |
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/ppc')
-rw-r--r-- | drivers/ide/ppc/pmac.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/ide/ppc/pmac.c b/drivers/ide/ppc/pmac.c index d3bb247e9574..395d35253d5d 100644 --- a/drivers/ide/ppc/pmac.c +++ b/drivers/ide/ppc/pmac.c | |||
@@ -1983,10 +1983,8 @@ static void pmac_ide_dma_host_off(ide_drive_t *drive) | |||
1983 | { | 1983 | { |
1984 | } | 1984 | } |
1985 | 1985 | ||
1986 | static int | 1986 | static int pmac_ide_dma_host_on(ide_drive_t *drive) |
1987 | pmac_ide_dma_host_on (ide_drive_t *drive) | ||
1988 | { | 1987 | { |
1989 | return 0; | ||
1990 | } | 1988 | } |
1991 | 1989 | ||
1992 | static int | 1990 | static int |
@@ -2041,7 +2039,7 @@ pmac_ide_setup_dma(pmac_ide_hwif_t *pmif, ide_hwif_t *hwif) | |||
2041 | hwif->ide_dma_end = &pmac_ide_dma_end; | 2039 | hwif->ide_dma_end = &pmac_ide_dma_end; |
2042 | hwif->ide_dma_test_irq = &pmac_ide_dma_test_irq; | 2040 | hwif->ide_dma_test_irq = &pmac_ide_dma_test_irq; |
2043 | hwif->dma_host_off = &pmac_ide_dma_host_off; | 2041 | hwif->dma_host_off = &pmac_ide_dma_host_off; |
2044 | hwif->ide_dma_host_on = &pmac_ide_dma_host_on; | 2042 | hwif->dma_host_on = &pmac_ide_dma_host_on; |
2045 | hwif->ide_dma_timeout = &__ide_dma_timeout; | 2043 | hwif->ide_dma_timeout = &__ide_dma_timeout; |
2046 | hwif->ide_dma_lostirq = &pmac_ide_dma_lostirq; | 2044 | hwif->ide_dma_lostirq = &pmac_ide_dma_lostirq; |
2047 | 2045 | ||