dma-mapping: consolidate dma_supported
[firefly-linux-kernel-4.4.55.git] / arch / sh / include / asm / dma-mapping.h
index 98308c497162c22e15e88e17e452918eae00f4ba..088f6e5f1a927caabe43f515fd92e6fd28e6726a 100644 (file)
@@ -13,16 +13,6 @@ static inline struct dma_map_ops *get_dma_ops(struct device *dev)
 
 #include <asm-generic/dma-mapping-common.h>
 
-static inline int dma_supported(struct device *dev, u64 mask)
-{
-       struct dma_map_ops *ops = get_dma_ops(dev);
-
-       if (ops->dma_supported)
-               return ops->dma_supported(dev, mask);
-
-       return 1;
-}
-
 static inline int dma_set_mask(struct device *dev, u64 mask)
 {
        struct dma_map_ops *ops = get_dma_ops(dev);