diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-10-25 20:50:51 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-10-25 20:50:51 -0400 |
commit | f32154c9b580f11017b01bf093514c900c09364e (patch) | |
tree | 3ec811bc69fd2e562bd9000c323fc3ae1584ce68 /arch/sh/kernel/dma-nommu.c | |
parent | 73c926bee0e4b7739bbb992a0a3df561178dd522 (diff) |
sh: Add dma-mapping support for dma_alloc/free_coherent() overrides.
This moves the current dma_alloc/free_coherent() calls to a generic
variant and plugs them in for the nommu default. Other variants can
override the defaults in the dma mapping ops directly.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/dma-nommu.c')
-rw-r--r-- | arch/sh/kernel/dma-nommu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sh/kernel/dma-nommu.c b/arch/sh/kernel/dma-nommu.c index e88fcebf860..b336fcf40f1 100644 --- a/arch/sh/kernel/dma-nommu.c +++ b/arch/sh/kernel/dma-nommu.c | |||
@@ -61,6 +61,8 @@ static void nommu_sync_sg(struct device *dev, struct scatterlist *sg, | |||
61 | } | 61 | } |
62 | 62 | ||
63 | struct dma_map_ops nommu_dma_ops = { | 63 | struct dma_map_ops nommu_dma_ops = { |
64 | .alloc_coherent = dma_generic_alloc_coherent, | ||
65 | .free_coherent = dma_generic_free_coherent, | ||
64 | .map_page = nommu_map_page, | 66 | .map_page = nommu_map_page, |
65 | .map_sg = nommu_map_sg, | 67 | .map_sg = nommu_map_sg, |
66 | .sync_single_for_device = nommu_sync_single, | 68 | .sync_single_for_device = nommu_sync_single, |