Blob Blame History Raw
From: Christoph Hellwig <hch@lst.de>
Date: Wed, 20 Dec 2017 15:56:46 +0100
Subject: s390: remove the unused dma_capable helper
Git-commit: 8fbc02ac62677603e75a67385fccd0c0bc69fa5c
Patch-mainline: v4.16-rc1
References: jsc#SLE-6197 FATE#327012 bsc#1140559 LTC#173150

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Petr Tesarik <ptesarik@suse.com>
---
 arch/s390/include/asm/dma-mapping.h |    7 -------
 1 file changed, 7 deletions(-)

--- a/arch/s390/include/asm/dma-mapping.h
+++ b/arch/s390/include/asm/dma-mapping.h
@@ -22,11 +22,4 @@ static inline void dma_cache_sync(struct
 {
 }
 
-static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size)
-{
-	if (!dev->dma_mask)
-		return false;
-	return addr + size - 1 <= *dev->dma_mask;
-}
-
 #endif /* _ASM_S390_DMA_MAPPING_H */