alpha: simplify get_arch_dma_ops
Remove the dma_ops indirection. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Matt Turner <mattst88@gmail.com>hifive-unleashed-5.1
parent
6db615431a
commit
f5e82fa260
|
@ -2,14 +2,14 @@
|
||||||
#ifndef _ALPHA_DMA_MAPPING_H
|
#ifndef _ALPHA_DMA_MAPPING_H
|
||||||
#define _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)
|
static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_ALPHA_JENSEN
|
#ifdef CONFIG_ALPHA_JENSEN
|
||||||
return &dma_direct_ops;
|
return &dma_direct_ops;
|
||||||
#else
|
#else
|
||||||
return dma_ops;
|
return &alpha_pci_ops;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -950,6 +950,4 @@ const struct dma_map_ops alpha_pci_ops = {
|
||||||
.mapping_error = alpha_pci_mapping_error,
|
.mapping_error = alpha_pci_mapping_error,
|
||||||
.dma_supported = alpha_pci_supported,
|
.dma_supported = alpha_pci_supported,
|
||||||
};
|
};
|
||||||
|
EXPORT_SYMBOL(alpha_pci_ops);
|
||||||
const struct dma_map_ops *dma_ops = &alpha_pci_ops;
|
|
||||||
EXPORT_SYMBOL(dma_ops);
|
|
||||||
|
|
Loading…
Reference in New Issue