arm64: don't override dma_max_pfn
authorChristoph Hellwig <hch@lst.de>
Tue, 9 Jan 2018 21:11:10 +0000 (22:11 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 10 Jan 2018 15:25:18 +0000 (16:25 +0100)
The generic version now takes dma_pfn_offset into account, so there is no
more need for an architecture override.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
arch/arm64/include/asm/dma-mapping.h

index 0df756b248633fa76b564ef37540b21d1b59bc63..eada887a93bfdec42f4cb181092532d1e89d5433 100644 (file)
@@ -76,14 +76,5 @@ static inline void dma_mark_clean(void *addr, size_t size)
 {
 }
 
-/* Override for dma_max_pfn() */
-static inline unsigned long dma_max_pfn(struct device *dev)
-{
-       dma_addr_t dma_max = (dma_addr_t)*dev->dma_mask;
-
-       return (ulong)dma_to_phys(dev, dma_max) >> PAGE_SHIFT;
-}
-#define dma_max_pfn(dev) dma_max_pfn(dev)
-
 #endif /* __KERNEL__ */
 #endif /* __ASM_DMA_MAPPING_H */