|
@@ -27,11 +27,8 @@
|
|
|
#define DMA_ERROR_CODE (~(dma_addr_t)0)
|
|
|
extern const struct dma_map_ops dummy_dma_ops;
|
|
|
|
|
|
-static inline const struct dma_map_ops *__generic_dma_ops(struct device *dev)
|
|
|
+static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
|
|
|
{
|
|
|
- if (dev && dev->dma_ops)
|
|
|
- return dev->dma_ops;
|
|
|
-
|
|
|
/*
|
|
|
* We expect no ISA devices, and all other DMA masters are expected to
|
|
|
* have someone call arch_setup_dma_ops at device creation time.
|
|
@@ -39,14 +36,6 @@ static inline const struct dma_map_ops *__generic_dma_ops(struct device *dev)
|
|
|
return &dummy_dma_ops;
|
|
|
}
|
|
|
|
|
|
-static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
|
|
|
-{
|
|
|
- if (xen_initial_domain())
|
|
|
- return xen_dma_ops;
|
|
|
- else
|
|
|
- return __generic_dma_ops(NULL);
|
|
|
-}
|
|
|
-
|
|
|
void arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size,
|
|
|
const struct iommu_ops *iommu, bool coherent);
|
|
|
#define arch_setup_dma_ops arch_setup_dma_ops
|