Skip to content

Commit e56751c

Browse files
geliangtangMichal Simek
authored andcommitted
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>
1 parent 5ed02db commit e56751c

File tree

1 file changed

+1
-2
lines changed
  • arch/microblaze/kernel

1 file changed

+1
-2
lines changed

arch/microblaze/kernel/dma.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ static int dma_direct_map_sg(struct device *dev, struct scatterlist *sgl,
6565
if (attrs & DMA_ATTR_SKIP_CPU_SYNC)
6666
continue;
6767

68-
__dma_sync(page_to_phys(sg_page(sg)) + sg->offset,
69-
sg->length, direction);
68+
__dma_sync(sg_phys(sg), sg->length, direction);
7069
}
7170

7271
return nents;

0 commit comments

Comments
 (0)