On 23.3.2017 14:16, Geliang Tang wrote: > Use sg_phys() instead of open-coding it. > > Signed-off-by: Geliang Tang <[email protected]> > --- > arch/microblaze/kernel/dma.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/arch/microblaze/kernel/dma.c b/arch/microblaze/kernel/dma.c > index 12e093a..e45ada8 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; >
Applied. Thanks, Michal -- Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91 w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel - Xilinx Microblaze Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP SoCs
signature.asc
Description: OpenPGP digital signature

