summaryrefslogtreecommitdiff
path: root/arch/alpha/include/asm
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-05-09 17:04:51 +0300
committerMatt Turner <mattst88@gmail.com>2018-05-23 04:10:36 +0300
commit6db615431a21b6057f68ed87583a663ee69f7601 (patch)
treeb785afbe9eb7ebfda71fc8ff452714a25e549119 /arch/alpha/include/asm
parentc61a56ababa404961fa769a2b24229f18e461961 (diff)
downloadlinux-6db615431a21b6057f68ed87583a663ee69f7601.tar.xz
alpha: use dma_direct_ops for jensen
The generic dma_direct implementation does the same thing as the alpha pci-noop implementation, just with more bells and whistles. And unlike the current code it at least has a theoretical chance to actually compile. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'arch/alpha/include/asm')
-rw-r--r--arch/alpha/include/asm/dma-mapping.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/alpha/include/asm/dma-mapping.h b/arch/alpha/include/asm/dma-mapping.h
index b78f61f20796..76ce923ecca1 100644
--- a/arch/alpha/include/asm/dma-mapping.h
+++ b/arch/alpha/include/asm/dma-mapping.h
@@ -6,7 +6,11 @@ extern const struct dma_map_ops *dma_ops;
static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
{
+#ifdef CONFIG_ALPHA_JENSEN
+ return &dma_direct_ops;
+#else
return dma_ops;
+#endif
}
#endif /* _ALPHA_DMA_MAPPING_H */