|
@@ -74,12 +74,6 @@ static int nommu_map_sg(struct device *hwdev, struct scatterlist *sg,
|
|
return nents;
|
|
return nents;
|
|
}
|
|
}
|
|
|
|
|
|
-static void nommu_free_coherent(struct device *dev, size_t size, void *vaddr,
|
|
|
|
- dma_addr_t dma_addr, struct dma_attrs *attrs)
|
|
|
|
-{
|
|
|
|
- free_pages((unsigned long)vaddr, get_order(size));
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
static void nommu_sync_single_for_device(struct device *dev,
|
|
static void nommu_sync_single_for_device(struct device *dev,
|
|
dma_addr_t addr, size_t size,
|
|
dma_addr_t addr, size_t size,
|
|
enum dma_data_direction dir)
|
|
enum dma_data_direction dir)
|
|
@@ -97,7 +91,7 @@ static void nommu_sync_sg_for_device(struct device *dev,
|
|
|
|
|
|
struct dma_map_ops nommu_dma_ops = {
|
|
struct dma_map_ops nommu_dma_ops = {
|
|
.alloc = dma_generic_alloc_coherent,
|
|
.alloc = dma_generic_alloc_coherent,
|
|
- .free = nommu_free_coherent,
|
|
|
|
|
|
+ .free = dma_generic_free_coherent,
|
|
.map_sg = nommu_map_sg,
|
|
.map_sg = nommu_map_sg,
|
|
.map_page = nommu_map_page,
|
|
.map_page = nommu_map_page,
|
|
.sync_single_for_device = nommu_sync_single_for_device,
|
|
.sync_single_for_device = nommu_sync_single_for_device,
|