aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/sysdev')
-rw-r--r--arch/powerpc/sysdev/dart_iommu.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/powerpc/sysdev/dart_iommu.c b/arch/powerpc/sysdev/dart_iommu.c
index 4f2680f431b5..8ef63a01e345 100644
--- a/arch/powerpc/sysdev/dart_iommu.c
+++ b/arch/powerpc/sysdev/dart_iommu.c
@@ -43,7 +43,6 @@
43#include <asm/iommu.h> 43#include <asm/iommu.h>
44#include <asm/pci-bridge.h> 44#include <asm/pci-bridge.h>
45#include <asm/machdep.h> 45#include <asm/machdep.h>
46#include <asm/abs_addr.h>
47#include <asm/cacheflush.h> 46#include <asm/cacheflush.h>
48#include <asm/ppc-pci.h> 47#include <asm/ppc-pci.h>
49 48
@@ -167,7 +166,7 @@ static int dart_build(struct iommu_table *tbl, long index,
167 */ 166 */
168 l = npages; 167 l = npages;
169 while (l--) { 168 while (l--) {
170 rpn = virt_to_abs(uaddr) >> DART_PAGE_SHIFT; 169 rpn = __pa(uaddr) >> DART_PAGE_SHIFT;
171 170
172 *(dp++) = DARTMAP_VALID | (rpn & DARTMAP_RPNMASK); 171 *(dp++) = DARTMAP_VALID | (rpn & DARTMAP_RPNMASK);
173 172
@@ -244,7 +243,7 @@ static int __init dart_init(struct device_node *dart_node)
244 panic("DART: Cannot map registers!"); 243 panic("DART: Cannot map registers!");
245 244
246 /* Map in DART table */ 245 /* Map in DART table */
247 dart_vbase = ioremap(virt_to_abs(dart_tablebase), dart_tablesize); 246 dart_vbase = ioremap(__pa(dart_tablebase), dart_tablesize);
248 247
249 /* Fill initial table */ 248 /* Fill initial table */
250 for (i = 0; i < dart_tablesize/4; i++) 249 for (i = 0; i < dart_tablesize/4; i++)
@@ -463,7 +462,7 @@ void __init alloc_dart_table(void)
463 * will blow up an entire large page anyway in the kernel mapping 462 * will blow up an entire large page anyway in the kernel mapping
464 */ 463 */
465 dart_tablebase = (unsigned long) 464 dart_tablebase = (unsigned long)
466 abs_to_virt(memblock_alloc_base(1UL<<24, 1UL<<24, 0x80000000L)); 465 __va(memblock_alloc_base(1UL<<24, 1UL<<24, 0x80000000L));
467 466
468 printk(KERN_INFO "DART table allocated at: %lx\n", dart_tablebase); 467 printk(KERN_INFO "DART table allocated at: %lx\n", dart_tablebase);
469} 468}