summaryrefslogtreecommitdiff
path: root/drivers/of
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2023-11-24 21:10:03 +0300
committerChristoph Hellwig <hch@lst.de>2023-12-15 14:32:42 +0300
commit4ad4c1f394b84f9941a10aa8aaf11102478a390b (patch)
treedd8752f43b26d9a042f2124b2d1b7551e0a83d95 /drivers/of
parent3f7168591ebf7bbdb91797d02b1afaf00a4289b1 (diff)
downloadlinux-4ad4c1f394b84f9941a10aa8aaf11102478a390b.tar.xz
dma-mapping: don't store redundant offsets
A bus_dma_region necessarily stores both CPU and DMA base addresses for a range, so there's no need to also store the difference between them. Signed-off-by: Robin Murphy <robin.murphy@arm.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/address.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/of/address.c b/drivers/of/address.c
index b59956310f66..ae46a3605904 100644
--- a/drivers/of/address.c
+++ b/drivers/of/address.c
@@ -955,7 +955,6 @@ int of_dma_get_range(struct device_node *np, const struct bus_dma_region **map)
r->cpu_start = range.cpu_addr;
r->dma_start = range.bus_addr;
r->size = range.size;
- r->offset = range.cpu_addr - range.bus_addr;
r++;
}
out: