powerpc/dma: remove set_dma_offset
There is no good reason for this helper, just opencode it. Signed-off-by: Christoph Hellwig <hch@lst.de> Tested-by: Christian Zigotzky <chzigotzky@xenosoft.de> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:

committed by
Michael Ellerman

parent
7610fdf5e0
commit
0617fc0ca4
@@ -386,7 +386,7 @@ static bool dart_device_on_pcie(struct device *dev)
|
||||
static void pci_dma_dev_setup_dart(struct pci_dev *dev)
|
||||
{
|
||||
if (dart_is_u4 && dart_device_on_pcie(&dev->dev))
|
||||
set_dma_offset(&dev->dev, DART_U4_BYPASS_BASE);
|
||||
dev->dev.archdata.dma_offset = DART_U4_BYPASS_BASE;
|
||||
set_iommu_table_base(&dev->dev, &iommu_table_dart);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user