Skip to content

Commit 64273a6

Browse files
author
Christoph Hellwig
committed
arm: implement ->dma_supported instead of ->set_dma_mask
Same behavior, less code duplication. Signed-off-by: Christoph Hellwig <hch@lst.de>
1 parent 69f07be commit 64273a6

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎arch/arm/common/dmabounce.c‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -445,12 +445,12 @@ static void dmabounce_sync_for_device(struct device *dev,
445445
arm_dma_ops.sync_single_for_device(dev, handle, size, dir);
446446
}
447447

448-
static int dmabounce_set_mask(struct device *dev, u64 dma_mask)
448+
static int dmabounce_dma_supported(struct device *dev, u64 dma_mask)
449449
{
450450
if (dev->archdata.dmabounce)
451451
return 0;
452452

453-
return arm_dma_ops.set_dma_mask(dev, dma_mask);
453+
return arm_dma_ops.dma_supported(dev, dma_mask);
454454
}
455455

456456
static int dmabounce_mapping_error(struct device *dev, dma_addr_t dma_addr)
@@ -471,9 +471,8 @@ static const struct dma_map_ops dmabounce_ops = {
471471
.unmap_sg = arm_dma_unmap_sg,
472472
.sync_sg_for_cpu = arm_dma_sync_sg_for_cpu,
473473
.sync_sg_for_device = arm_dma_sync_sg_for_device,
474-
.set_dma_mask = dmabounce_set_mask,
474+
.dma_supported = dmabounce_dma_supported,
475475
.mapping_error = dmabounce_mapping_error,
476-
.dma_supported = arm_dma_supported,
477476
};
478477

479478
static int dmabounce_init_pool(struct dmabounce_pool *pool, struct device *dev,

0 commit comments

Comments
 (0)