powerpc/dma: remove get_dma_offset
authorChristoph Hellwig <hch@lst.de>
Wed, 13 Feb 2019 07:01:31 +0000 (08:01 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 18 Feb 2019 11:41:04 +0000 (22:41 +1100)
commit7610fdf5e056ad5764d19f39db49b11608334610
treec136aede7dbdbc55a575ff3763378ab3cdfddf49
parent68005b67d15a1ee5b5ddff965175728e65fa73e7
powerpc/dma: remove get_dma_offset

Just fold the calculation into __phys_to_dma/__dma_to_phys as those are
the only places that should know about it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Tested-by: Christian Zigotzky <chzigotzky@xenosoft.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/dma-direct.h
arch/powerpc/include/asm/dma-mapping.h