Skip to content

Commit

Permalink
Revert "Replace alloc_pages with alloc_pages_op in zhaoxin_kh40000.c"
Browse files Browse the repository at this point in the history
  • Loading branch information
opsiff authored and Avenger-285714 committed Sep 5, 2024
1 parent a4beb3f commit 24ec0fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/x86/kernel/zhaoxin_kh40000.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const struct dma_map_ops kh40000_dma_direct_ops = {
.unmap_resource = kh40000_dma_direct_unmap_resource,
.dma_supported = dma_direct_supported,
.free = dma_direct_free,
.alloc_pages_op = dma_direct_alloc_pages,
.alloc_pages = dma_direct_alloc_pages,
.free_pages = dma_direct_free_pages,
.sync_single_for_device = dma_direct_sync_single_for_device,
.sync_sg_for_device = dma_direct_sync_sg_for_device,
Expand Down Expand Up @@ -200,7 +200,7 @@ static void kh40000_iommu_dma_free(struct device *dev, size_t size, void *cpu_ad
static struct page *kh40000_dma_common_alloc_pages(struct device *dev, size_t size,
dma_addr_t *dma_handle, enum dma_data_direction dir, gfp_t gfp)
{
return iommu_dma_ops->alloc_pages_op(dev, size, dma_handle, dir, gfp);
return iommu_dma_ops->alloc_pages(dev, size, dma_handle, dir, gfp);
}

static void kh40000_dma_common_free_pages(struct device *dev, size_t size, struct page *page,
Expand Down Expand Up @@ -327,7 +327,7 @@ const struct dma_map_ops kh40000_dma_iommu_ops = {
.alloc = kh40000_iommu_dma_alloc,
.free = kh40000_iommu_dma_free,
.unmap_page = kh40000_iommu_dma_unmap_page,
.alloc_pages_op = kh40000_dma_common_alloc_pages,
.alloc_pages = kh40000_dma_common_alloc_pages,
.free_pages = kh40000_dma_common_free_pages,
.alloc_noncontiguous = kh40000_iommu_dma_alloc_noncontiguous,
.free_noncontiguous = kh40000_iommu_dma_free_noncontiguous,
Expand Down

0 comments on commit 24ec0fa

Please sign in to comment.