Skip to content

Commit c6d333e

Browse files
author
Christoph Hellwig
committed
sparc: remove leon_dma_ops
We can just use pci32_dma_ops directly. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: David S. Miller <davem@davemloft.net>
1 parent f51f288 commit c6d333e

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

arch/sparc/include/asm/dma-mapping.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ static inline void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
1717
}
1818

1919
extern const struct dma_map_ops *dma_ops;
20-
extern const struct dma_map_ops *leon_dma_ops;
2120
extern const struct dma_map_ops pci32_dma_ops;
2221

2322
extern struct bus_type pci_bus_type;
@@ -26,7 +25,7 @@ static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
2625
{
2726
#ifdef CONFIG_SPARC_LEON
2827
if (sparc_cpu_model == sparc_leon)
29-
return leon_dma_ops;
28+
return &pci32_dma_ops;
3029
#endif
3130
#if defined(CONFIG_SPARC32) && defined(CONFIG_PCI)
3231
if (bus == &pci_bus_type)

arch/sparc/kernel/ioport.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,7 @@ static void pci32_sync_sg_for_device(struct device *device, struct scatterlist *
637637
}
638638
}
639639

640+
/* note: leon re-uses pci32_dma_ops */
640641
const struct dma_map_ops pci32_dma_ops = {
641642
.alloc = pci32_alloc_coherent,
642643
.free = pci32_free_coherent,
@@ -651,10 +652,6 @@ const struct dma_map_ops pci32_dma_ops = {
651652
};
652653
EXPORT_SYMBOL(pci32_dma_ops);
653654

654-
/* leon re-uses pci32_dma_ops */
655-
const struct dma_map_ops *leon_dma_ops = &pci32_dma_ops;
656-
EXPORT_SYMBOL(leon_dma_ops);
657-
658655
const struct dma_map_ops *dma_ops = &sbus_dma_ops;
659656
EXPORT_SYMBOL(dma_ops);
660657

0 commit comments

Comments
 (0)