mirror of
https://github.com/torvalds/linux.git
synced 2026-11-25 07:52:34 +00:00
Support for calling the DMA API functions without a valid device pointer was removed a while ago, so remove the stale support for that from the powerpc __phys_to_dma / __dma_to_phys helpers. Signed-off-by: Christoph Hellwig <[email protected]> Acked-by: Michael Ellerman <[email protected]> Reviewed-by: Nicolas Saenz Julienne <[email protected]>
15 lines
395 B
C
15 lines
395 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef ASM_POWERPC_DMA_DIRECT_H
|
|
#define ASM_POWERPC_DMA_DIRECT_H 1
|
|
|
|
static inline dma_addr_t __phys_to_dma(struct device *dev, phys_addr_t paddr)
|
|
{
|
|
return paddr + dev->archdata.dma_offset;
|
|
}
|
|
|
|
static inline phys_addr_t __dma_to_phys(struct device *dev, dma_addr_t daddr)
|
|
{
|
|
return daddr - dev->archdata.dma_offset;
|
|
}
|
|
#endif /* ASM_POWERPC_DMA_DIRECT_H */
|