|
@@ -20,10 +20,12 @@ extern struct bus_type pci_bus_type;
|
|
|
|
|
|
static inline struct dma_map_ops *get_dma_ops(struct device *dev)
|
|
|
{
|
|
|
-#if defined(CONFIG_SPARC32) && defined(CONFIG_PCI)
|
|
|
+#ifdef CONFIG_SPARC_LEON
|
|
|
if (sparc_cpu_model == sparc_leon)
|
|
|
return leon_dma_ops;
|
|
|
- else if (dev->bus == &pci_bus_type)
|
|
|
+#endif
|
|
|
+#if defined(CONFIG_SPARC32) && defined(CONFIG_PCI)
|
|
|
+ if (dev->bus == &pci_bus_type)
|
|
|
return &pci32_dma_ops;
|
|
|
#endif
|
|
|
return dma_ops;
|