Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e56751c9 authored by Geliang Tang's avatar Geliang Tang Committed by Michal Simek
Browse files

microblaze: use sg_phys()



Use sg_phys() instead of open-coding it.

Signed-off-by: default avatarGeliang Tang <geliangtang@gmail.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 5ed02dbb
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;