summaryrefslogtreecommitdiffstats
path: root/arch/microblaze/kernel/dma.c
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@gmail.com>2017-03-23 21:16:32 +0800
committerMichal Simek <michal.simek@xilinx.com>2017-05-29 11:00:02 +0200
commite56751c961eaf232f121025c29af94ab3d64feb2 (patch)
tree2b5da7fa3eacdbbb880bc064bff8027faf3b5439 /arch/microblaze/kernel/dma.c
parent5ed02dbb497422bf225783f46e6eadd237d23d6b (diff)
downloadlinux-e56751c961eaf232f121025c29af94ab3d64feb2.tar.bz2
microblaze: use sg_phys()
Use sg_phys() instead of open-coding it. Signed-off-by: Geliang Tang <geliangtang@gmail.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/microblaze/kernel/dma.c')
-rw-r--r--arch/microblaze/kernel/dma.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/microblaze/kernel/dma.c b/arch/microblaze/kernel/dma.c
index 12e093a03e60..e45ada8fb006 100644
--- a/arch/microblaze/kernel/dma.c
+++ b/arch/microblaze/kernel/dma.c
@@ -65,8 +65,7 @@ static int dma_direct_map_sg(struct device *dev, struct scatterlist *sgl,
if (attrs & DMA_ATTR_SKIP_CPU_SYNC)
continue;
- __dma_sync(page_to_phys(sg_page(sg)) + sg->offset,
- sg->length, direction);
+ __dma_sync(sg_phys(sg), sg->length, direction);
}
return nents;