aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/celleb/iommu.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/platforms/celleb/iommu.c')
-rw-r--r--arch/powerpc/platforms/celleb/iommu.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/celleb/iommu.c b/arch/powerpc/platforms/celleb/iommu.c
index 843a66f422b..93b0efddd65 100644
--- a/arch/powerpc/platforms/celleb/iommu.c
+++ b/arch/powerpc/platforms/celleb/iommu.c
@@ -52,6 +52,8 @@ static int __init find_dma_window(u64 *io_space_id, u64 *ioid,
52 return 0; 52 return 0;
53} 53}
54 54
55static unsigned long celleb_dma_direct_offset;
56
55static void __init celleb_init_direct_mapping(void) 57static void __init celleb_init_direct_mapping(void)
56{ 58{
57 u64 lpar_addr, io_addr; 59 u64 lpar_addr, io_addr;
@@ -69,13 +71,13 @@ static void __init celleb_init_direct_mapping(void)
69 ioid, DMA_FLAGS); 71 ioid, DMA_FLAGS);
70 } 72 }
71 73
72 dma_direct_offset = dma_base; 74 celleb_dma_direct_offset = dma_base;
73} 75}
74 76
75static void celleb_dma_dev_setup(struct device *dev) 77static void celleb_dma_dev_setup(struct device *dev)
76{ 78{
77 dev->archdata.dma_ops = get_pci_dma_ops(); 79 dev->archdata.dma_ops = get_pci_dma_ops();
78 dev->archdata.dma_data = (void *)dma_direct_offset; 80 dev->archdata.dma_data = (void *)celleb_dma_direct_offset;
79} 81}
80 82
81static void celleb_pci_dma_dev_setup(struct pci_dev *pdev) 83static void celleb_pci_dma_dev_setup(struct pci_dev *pdev)