提交 b9b12fd1 编写于 作者: F FUJITA Tomonori 提交者: Michal Simek

microblaze: use asm-generic/pci-dma-compat.h

Use asm-generic/pci-dma-compat.h instead of the homegrown
pci_set_dma_mask and pci_set_consistent_dma_mask.
Signed-off-by: NFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
上级 6d5f2f6d
...@@ -165,5 +165,7 @@ extern void __init xilinx_pci_init(void); ...@@ -165,5 +165,7 @@ extern void __init xilinx_pci_init(void);
static inline void __init xilinx_pci_init(void) { return; } static inline void __init xilinx_pci_init(void) { return; }
#endif #endif
#include <asm-generic/pci-dma-compat.h>
#endif /* __KERNEL__ */ #endif /* __KERNEL__ */
#endif /* __ASM_MICROBLAZE_PCI_H */ #endif /* __ASM_MICROBLAZE_PCI_H */
...@@ -60,21 +60,6 @@ struct dma_map_ops *get_pci_dma_ops(void) ...@@ -60,21 +60,6 @@ struct dma_map_ops *get_pci_dma_ops(void)
} }
EXPORT_SYMBOL(get_pci_dma_ops); EXPORT_SYMBOL(get_pci_dma_ops);
int pci_set_dma_mask(struct pci_dev *dev, u64 mask)
{
return dma_set_mask(&dev->dev, mask);
}
int pci_set_consistent_dma_mask(struct pci_dev *dev, u64 mask)
{
int rc;
rc = dma_set_mask(&dev->dev, mask);
dev->dev.coherent_dma_mask = dev->dma_mask;
return rc;
}
struct pci_controller *pcibios_alloc_controller(struct device_node *dev) struct pci_controller *pcibios_alloc_controller(struct device_node *dev)
{ {
struct pci_controller *phb; struct pci_controller *phb;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册