aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-dma.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-23 13:55:51 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-07-23 13:55:51 -0400
commit81e8d5a34f7d2a2acbe309cfa5810a9699a63239 (patch)
treebe8257161e9bbc6f7bd0fe0b7980de94681d3306 /drivers/ide/ide-dma.c
parentcab7f8eda40d3e3e16b137c67cdddc2cf893c5d7 (diff)
ide: remove ide_setup_dma()
Export sff_dma_ops and then remove ide_setup_dma(). There should be no functional changes caused by this patch. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-dma.c')
-rw-r--r--drivers/ide/ide-dma.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/ide/ide-dma.c b/drivers/ide/ide-dma.c
index d98a9da2699c..ac342ebf6c54 100644
--- a/drivers/ide/ide-dma.c
+++ b/drivers/ide/ide-dma.c
@@ -878,7 +878,7 @@ int ide_allocate_dma_engine(ide_hwif_t *hwif)
878} 878}
879EXPORT_SYMBOL_GPL(ide_allocate_dma_engine); 879EXPORT_SYMBOL_GPL(ide_allocate_dma_engine);
880 880
881static const struct ide_dma_ops sff_dma_ops = { 881const struct ide_dma_ops sff_dma_ops = {
882 .dma_host_set = ide_dma_host_set, 882 .dma_host_set = ide_dma_host_set,
883 .dma_setup = ide_dma_setup, 883 .dma_setup = ide_dma_setup,
884 .dma_exec_cmd = ide_dma_exec_cmd, 884 .dma_exec_cmd = ide_dma_exec_cmd,
@@ -888,13 +888,5 @@ static const struct ide_dma_ops sff_dma_ops = {
888 .dma_timeout = ide_dma_timeout, 888 .dma_timeout = ide_dma_timeout,
889 .dma_lost_irq = ide_dma_lost_irq, 889 .dma_lost_irq = ide_dma_lost_irq,
890}; 890};
891 891EXPORT_SYMBOL_GPL(sff_dma_ops);
892void ide_setup_dma(ide_hwif_t *hwif, unsigned long base)
893{
894 hwif->dma_base = base;
895
896 hwif->dma_ops = &sff_dma_ops;
897}
898
899EXPORT_SYMBOL_GPL(ide_setup_dma);
900#endif /* CONFIG_BLK_DEV_IDEDMA_SFF */ 892#endif /* CONFIG_BLK_DEV_IDEDMA_SFF */