free_pages((unsigned long)vaddr, get_order(size));
}
- struct dma_mapping_ops nommu_dma_ops = {
+ struct dma_map_ops nommu_dma_ops = {
- .alloc_coherent = dma_generic_alloc_coherent,
- .free_coherent = nommu_free_coherent,
- .map_sg = nommu_map_sg,
- .map_page = nommu_map_page,
- .is_phys = 1,
+ .alloc_coherent = dma_generic_alloc_coherent,
+ .free_coherent = nommu_free_coherent,
- .map_single = nommu_map_single,
+ .map_sg = nommu_map_sg,
++ .map_page = nommu_map_page,
+ .is_phys = 1,
};
void __init no_iommu_init(void)