aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/pci/alim15x3.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-04-26 16:25:24 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-04-26 16:25:24 -0400
commitf37afdaca711838b50ecd89b9c15fc745270d77c (patch)
tree0580bdac04d7d9ef0cc9f4dc2350ea38141980b5 /drivers/ide/pci/alim15x3.c
parent5e37bdc081a980dd0d669e6387bcf15ca9666f81 (diff)
ide: constify struct ide_dma_ops
* Export ide_dma_exec_cmd() and __ide_dma_test_irq(). * Constify struct ide_dma_ops. * Always set hwif->dma_ops to &sff_dma_ops in ide_setup_dma() (it is later overriden by ide_init_port() if needed) and drop 'const struct ide_port_info *d' argument. While at it: * Rename __ide_dma_test_irq() to ide_dma_test_irq(). Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/pci/alim15x3.c')
-rw-r--r--drivers/ide/pci/alim15x3.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/ide/pci/alim15x3.c b/drivers/ide/pci/alim15x3.c
index 987db35199e6..b5a3bc33e167 100644
--- a/drivers/ide/pci/alim15x3.c
+++ b/drivers/ide/pci/alim15x3.c
@@ -731,7 +731,7 @@ static int __devinit init_dma_ali15x3(ide_hwif_t *hwif,
731 if (ide_allocate_dma_engine(hwif)) 731 if (ide_allocate_dma_engine(hwif))
732 return -1; 732 return -1;
733 733
734 ide_setup_dma(hwif, base, d); 734 ide_setup_dma(hwif, base);
735 735
736 return 0; 736 return 0;
737} 737}
@@ -743,8 +743,15 @@ static const struct ide_port_ops ali_port_ops = {
743 .cable_detect = ali_cable_detect, 743 .cable_detect = ali_cable_detect,
744}; 744};
745 745
746static struct ide_dma_ops ali_dma_ops = { 746static const struct ide_dma_ops ali_dma_ops = {
747 .dma_host_set = ide_dma_host_set,
747 .dma_setup = ali15x3_dma_setup, 748 .dma_setup = ali15x3_dma_setup,
749 .dma_exec_cmd = ide_dma_exec_cmd,
750 .dma_start = ide_dma_start,
751 .dma_end = __ide_dma_end,
752 .dma_test_irq = ide_dma_test_irq,
753 .dma_lost_irq = ide_dma_lost_irq,
754 .dma_timeout = ide_dma_timeout,
748}; 755};
749 756
750static const struct ide_port_info ali15x3_chipset __devinitdata = { 757static const struct ide_port_info ali15x3_chipset __devinitdata = {