diff options
Diffstat (limited to 'arch/powerpc/platforms/pasemi/iommu.c')
-rw-r--r-- | arch/powerpc/platforms/pasemi/iommu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/pasemi/iommu.c b/arch/powerpc/platforms/pasemi/iommu.c index 71dbf1a56e13..95fa6a7d15ee 100644 --- a/arch/powerpc/platforms/pasemi/iommu.c +++ b/arch/powerpc/platforms/pasemi/iommu.c | |||
@@ -249,13 +249,13 @@ void iommu_init_early_pasemi(void) | |||
249 | iommu_off = 1; | 249 | iommu_off = 1; |
250 | #else | 250 | #else |
251 | iommu_off = of_chosen && | 251 | iommu_off = of_chosen && |
252 | get_property(of_chosen, "linux,iommu-off", NULL); | 252 | of_get_property(of_chosen, "linux,iommu-off", NULL); |
253 | #endif | 253 | #endif |
254 | if (iommu_off) { | 254 | if (iommu_off) { |
255 | /* Direct I/O, IOMMU off */ | 255 | /* Direct I/O, IOMMU off */ |
256 | ppc_md.pci_dma_dev_setup = pci_dma_dev_setup_null; | 256 | ppc_md.pci_dma_dev_setup = pci_dma_dev_setup_null; |
257 | ppc_md.pci_dma_bus_setup = pci_dma_bus_setup_null; | 257 | ppc_md.pci_dma_bus_setup = pci_dma_bus_setup_null; |
258 | pci_dma_ops = &dma_direct_ops; | 258 | set_pci_dma_ops(&dma_direct_ops); |
259 | 259 | ||
260 | return; | 260 | return; |
261 | } | 261 | } |
@@ -266,7 +266,7 @@ void iommu_init_early_pasemi(void) | |||
266 | ppc_md.pci_dma_bus_setup = pci_dma_bus_setup_pasemi; | 266 | ppc_md.pci_dma_bus_setup = pci_dma_bus_setup_pasemi; |
267 | ppc_md.tce_build = iobmap_build; | 267 | ppc_md.tce_build = iobmap_build; |
268 | ppc_md.tce_free = iobmap_free; | 268 | ppc_md.tce_free = iobmap_free; |
269 | pci_dma_ops = &dma_iommu_ops; | 269 | set_pci_dma_ops(&dma_iommu_ops); |
270 | } | 270 | } |
271 | 271 | ||
272 | void __init alloc_iobmap_l2(void) | 272 | void __init alloc_iobmap_l2(void) |