提交 f5e82fa2 编写于 作者: C Christoph Hellwig 提交者: Matt Turner

alpha: simplify get_arch_dma_ops

Remove the dma_ops indirection.
Signed-off-by: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NMatt Turner <mattst88@gmail.com>
上级 6db61543
......@@ -2,14 +2,14 @@
#ifndef _ALPHA_DMA_MAPPING_H
#define _ALPHA_DMA_MAPPING_H
extern const struct dma_map_ops *dma_ops;
extern const struct dma_map_ops alpha_pci_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;
return &alpha_pci_ops;
#endif
}
......
......@@ -950,6 +950,4 @@ const struct dma_map_ops alpha_pci_ops = {
.mapping_error = alpha_pci_mapping_error,
.dma_supported = alpha_pci_supported,
};
const struct dma_map_ops *dma_ops = &alpha_pci_ops;
EXPORT_SYMBOL(dma_ops);
EXPORT_SYMBOL(alpha_pci_ops);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册