]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
openrisc: remove arch-specific dma_supported implementation
authorChristoph Hellwig <hch@lst.de>
Mon, 22 May 2017 09:11:20 +0000 (11:11 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 28 Jun 2017 13:54:44 +0000 (06:54 -0700)
This implementation is simply bogus - openrisc only has a simple
direct mapped DMA implementation and thus doesn't care about the
address.

Signed-off-by: Christoph Hellwig <hch@lst.de>
arch/openrisc/include/asm/dma-mapping.h

index a4ea139c2ef99e369f867ec8ed63938363bbac52..f41bd3cb76d905f05c2e977044d121de53d56798 100644 (file)
@@ -33,11 +33,4 @@ static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
        return &or1k_dma_map_ops;
 }
 
-#define HAVE_ARCH_DMA_SUPPORTED 1
-static inline int dma_supported(struct device *dev, u64 dma_mask)
-{
-       /* Support 32 bit DMA mask exclusively */
-       return dma_mask == DMA_BIT_MASK(32);
-}
-
 #endif /* __ASM_OPENRISC_DMA_MAPPING_H */