]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
microblaze: use asm-generic/pci-dma-compat.h
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Sat, 14 Aug 2010 07:18:26 +0000 (16:18 +0900)
committerMichal Simek <monstr@monstr.eu>
Thu, 21 Oct 2010 05:51:37 +0000 (15:51 +1000)
Use asm-generic/pci-dma-compat.h instead of the homegrown
pci_set_dma_mask and pci_set_consistent_dma_mask.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
arch/microblaze/include/asm/pci.h
arch/microblaze/pci/pci-common.c

index 5a388eeeb28fa3735912e741efb6389de28877c2..2232ff942ba9e58b2b0d657d3e92260cc9875fe8 100644 (file)
@@ -165,5 +165,7 @@ extern void __init xilinx_pci_init(void);
 static inline void __init xilinx_pci_init(void) { return; }
 #endif
 
+#include <asm-generic/pci-dma-compat.h>
+
 #endif /* __KERNEL__ */
 #endif /* __ASM_MICROBLAZE_PCI_H */
index 55ef532f32be6fc3c174e1280a7971ffc5329406..2bc57a836d71ce76d54f9bd093c4f90c5bb7f249 100644 (file)
@@ -60,21 +60,6 @@ struct dma_map_ops *get_pci_dma_ops(void)
 }
 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 *phb;