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

Commit 31d1b493 authored by Michael Ellerman's avatar Michael Ellerman Committed by Paul Mackerras
Browse files

[POWERPC] Remove the global dma_direct_offset



We no longer need the global dma_direct_offset, update the comment to
reflect the new reality.

Signed-off-by: default avatarMichael Ellerman <michael@ellerman.id.au>
Acked-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 15c60cc4
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -112,10 +112,11 @@ EXPORT_SYMBOL(dma_iommu_ops);
/*
 * Generic direct DMA implementation
 *
 * This implementation supports a global offset that can be applied if
 * the address at which memory is visible to devices is not 0.
 * This implementation supports a per-device offset that can be applied if
 * the address at which memory is visible to devices is not 0. Platform code
 * can set archdata.dma_data to an unsigned long holding the offset. By
 * default the offset is zero.
 */
unsigned long dma_direct_offset;

static unsigned long get_dma_direct_offset(struct device *dev)
{
+0 −2
Original line number Diff line number Diff line
@@ -189,8 +189,6 @@ static inline void dma_unmap_sg(struct device *dev, struct scatterlist *sg,
extern struct dma_mapping_ops dma_iommu_ops;
extern struct dma_mapping_ops dma_direct_ops;

extern unsigned long dma_direct_offset;

#else /* CONFIG_PPC64 */

#define dma_supported(dev, mask)	(1)