sparc: remove the mapping_error dma_map_ops method
Sparc already returns (~(dma_addr_t)0x0) on mapping failures, so we can switch over to returning DMA_MAPPING_ERROR and let the core dma-mapping code handle the rest. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
@@ -48,6 +48,4 @@ static inline int is_span_boundary(unsigned long entry,
|
||||
return iommu_is_span_boundary(entry, nr, shift, boundary_size);
|
||||
}
|
||||
|
||||
#define SPARC_MAPPING_ERROR (~(dma_addr_t)0x0)
|
||||
|
||||
#endif /* _IOMMU_COMMON_H */
|
||||
|
Reference in New Issue
Block a user