* [PATCH] microblaze: use asm-generic/pci-dma-compat.h
@ 2010-08-14 7:18 FUJITA Tomonori
2010-08-16 8:32 ` Michal Simek
0 siblings, 1 reply; 2+ messages in thread
From: FUJITA Tomonori @ 2010-08-14 7:18 UTC (permalink / raw)
To: monstr; +Cc: linux-kernel, microblaze-uclinux
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 | 2 ++
arch/microblaze/pci/pci-common.c | 15 ---------------
2 files changed, 2 insertions(+), 15 deletions(-)
diff --git a/arch/microblaze/include/asm/pci.h b/arch/microblaze/include/asm/pci.h
index 5a388ee..2232ff9 100644
--- a/arch/microblaze/include/asm/pci.h
+++ b/arch/microblaze/include/asm/pci.h
@@ -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 */
diff --git a/arch/microblaze/pci/pci-common.c b/arch/microblaze/pci/pci-common.c
index 23be25f..62f403b 100644
--- a/arch/microblaze/pci/pci-common.c
+++ b/arch/microblaze/pci/pci-common.c
@@ -59,21 +59,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;
--
1.6.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] microblaze: use asm-generic/pci-dma-compat.h
2010-08-14 7:18 [PATCH] microblaze: use asm-generic/pci-dma-compat.h FUJITA Tomonori
@ 2010-08-16 8:32 ` Michal Simek
0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2010-08-16 8:32 UTC (permalink / raw)
To: FUJITA Tomonori; +Cc: linux-kernel, microblaze-uclinux
FUJITA Tomonori wrote:
> 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>
Applied.
Thanks,
Michal
--
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/
Microblaze U-BOOT custodian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-08-16 8:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-14 7:18 [PATCH] microblaze: use asm-generic/pci-dma-compat.h FUJITA Tomonori
2010-08-16 8:32 ` Michal Simek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox