aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-dma.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-04-26 16:25:21 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-04-26 16:25:21 -0400
commitb8e73fba60414e161d8fd2429b6fb268e34502e2 (patch)
treef426376c826ff1a8979a36eb6b5bde1addb7d719 /drivers/ide/ide-dma.c
parent23658f8af3dbba53ae9796e4c37c2fdd0272662e (diff)
ide: export ide_allocate_dma_engine()
Export ide_allocate_dma_engine() and use it in trm290 host driver. Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-dma.c')
-rw-r--r--drivers/ide/ide-dma.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ide/ide-dma.c b/drivers/ide/ide-dma.c
index 1933254660a1..ca7f974a71f5 100644
--- a/drivers/ide/ide-dma.c
+++ b/drivers/ide/ide-dma.c
@@ -821,7 +821,7 @@ void ide_release_dma_engine(ide_hwif_t *hwif)
821 } 821 }
822} 822}
823 823
824static int ide_allocate_dma_engine(ide_hwif_t *hwif) 824int ide_allocate_dma_engine(ide_hwif_t *hwif)
825{ 825{
826 struct pci_dev *pdev = to_pci_dev(hwif->dev); 826 struct pci_dev *pdev = to_pci_dev(hwif->dev);
827 827
@@ -837,6 +837,7 @@ static int ide_allocate_dma_engine(ide_hwif_t *hwif)
837 837
838 return 1; 838 return 1;
839} 839}
840EXPORT_SYMBOL_GPL(ide_allocate_dma_engine);
840 841
841void ide_setup_dma(ide_hwif_t *hwif, unsigned long base) 842void ide_setup_dma(ide_hwif_t *hwif, unsigned long base)
842{ 843{