]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
dma-coherent: export dma_[alloc|release]_from_coherent methods
authorIngo Molnar <mingo@elte.hu>
Wed, 20 Aug 2008 10:16:09 +0000 (12:16 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 22 Aug 2008 06:34:53 +0000 (08:34 +0200)
fixes modular builds:

  ERROR: "dma_alloc_from_coherent" [sound/core/snd-page-alloc.ko] undefined!
  ERROR: "dma_release_from_coherent" [sound/core/snd-page-alloc.ko] undefined!

Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/dma-coherent.c

index c1d4d5b4c61ccb6fb95262fc34c2166158e00cd3..f013a0c2e111b09b2045d600d3d3c9944b3ffe9a 100644 (file)
@@ -124,6 +124,7 @@ int dma_alloc_from_coherent(struct device *dev, ssize_t size,
        }
        return (mem != NULL);
 }
+EXPORT_SYMBOL(dma_alloc_from_coherent);
 
 /**
  * dma_release_from_coherent() - try to free the memory allocated from per-device coherent memory pool
@@ -151,3 +152,4 @@ int dma_release_from_coherent(struct device *dev, int order, void *vaddr)
        }
        return 0;
 }
+EXPORT_SYMBOL(dma_release_from_coherent);