aboutsummaryrefslogtreecommitdiffstats
path: root/arch/microblaze
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2014-05-16 07:12:25 -0400
committerMichal Simek <michal.simek@xilinx.com>2014-06-04 00:59:59 -0400
commit6b3f246e398cc9afc61e3a65a116fabb6d5ca7aa (patch)
treeb8365de1e054dbea42317cecf5edde5b4ca0d7f8 /arch/microblaze
parentff97ba6d2f69d97aca4428ab012a13383a10892c (diff)
microblaze: Do not setup empty unmap_sg function
No reason to setup empty function. Core is checking if this function should be called or not. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/microblaze')
-rw-r--r--arch/microblaze/kernel/dma.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/microblaze/kernel/dma.c b/arch/microblaze/kernel/dma.c
index 8f9b99508e79..4633c36c1b32 100644
--- a/arch/microblaze/kernel/dma.c
+++ b/arch/microblaze/kernel/dma.c
@@ -68,12 +68,6 @@ static int dma_direct_map_sg(struct device *dev, struct scatterlist *sgl,
68 return nents; 68 return nents;
69} 69}
70 70
71static void dma_direct_unmap_sg(struct device *dev, struct scatterlist *sg,
72 int nents, enum dma_data_direction direction,
73 struct dma_attrs *attrs)
74{
75}
76
77static int dma_direct_dma_supported(struct device *dev, u64 mask) 71static int dma_direct_dma_supported(struct device *dev, u64 mask)
78{ 72{
79 return 1; 73 return 1;
@@ -164,7 +158,6 @@ struct dma_map_ops dma_direct_ops = {
164 .alloc = dma_direct_alloc_coherent, 158 .alloc = dma_direct_alloc_coherent,
165 .free = dma_direct_free_coherent, 159 .free = dma_direct_free_coherent,
166 .map_sg = dma_direct_map_sg, 160 .map_sg = dma_direct_map_sg,
167 .unmap_sg = dma_direct_unmap_sg,
168 .dma_supported = dma_direct_dma_supported, 161 .dma_supported = dma_direct_dma_supported,
169 .map_page = dma_direct_map_page, 162 .map_page = dma_direct_map_page,
170 .unmap_page = dma_direct_unmap_page, 163 .unmap_page = dma_direct_unmap_page,