diff options
Diffstat (limited to 'arch/powerpc/sysdev/dart_iommu.c')
| -rw-r--r-- | arch/powerpc/sysdev/dart_iommu.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/powerpc/sysdev/dart_iommu.c b/arch/powerpc/sysdev/dart_iommu.c index 03b4477dd7f0..572b7846cc77 100644 --- a/arch/powerpc/sysdev/dart_iommu.c +++ b/arch/powerpc/sysdev/dart_iommu.c | |||
| @@ -156,9 +156,6 @@ static void dart_build(struct iommu_table *tbl, long index, | |||
| 156 | 156 | ||
| 157 | DBG("dart: build at: %lx, %lx, addr: %x\n", index, npages, uaddr); | 157 | DBG("dart: build at: %lx, %lx, addr: %x\n", index, npages, uaddr); |
| 158 | 158 | ||
| 159 | index <<= DART_PAGE_FACTOR; | ||
| 160 | npages <<= DART_PAGE_FACTOR; | ||
| 161 | |||
| 162 | dp = ((unsigned int*)tbl->it_base) + index; | 159 | dp = ((unsigned int*)tbl->it_base) + index; |
| 163 | 160 | ||
| 164 | /* On U3, all memory is contigous, so we can move this | 161 | /* On U3, all memory is contigous, so we can move this |
| @@ -199,9 +196,6 @@ static void dart_free(struct iommu_table *tbl, long index, long npages) | |||
| 199 | 196 | ||
| 200 | DBG("dart: free at: %lx, %lx\n", index, npages); | 197 | DBG("dart: free at: %lx, %lx\n", index, npages); |
| 201 | 198 | ||
| 202 | index <<= DART_PAGE_FACTOR; | ||
| 203 | npages <<= DART_PAGE_FACTOR; | ||
| 204 | |||
| 205 | dp = ((unsigned int *)tbl->it_base) + index; | 199 | dp = ((unsigned int *)tbl->it_base) + index; |
| 206 | 200 | ||
| 207 | while (npages--) | 201 | while (npages--) |
| @@ -281,7 +275,7 @@ static void iommu_table_dart_setup(void) | |||
| 281 | iommu_table_dart.it_busno = 0; | 275 | iommu_table_dart.it_busno = 0; |
| 282 | iommu_table_dart.it_offset = 0; | 276 | iommu_table_dart.it_offset = 0; |
| 283 | /* it_size is in number of entries */ | 277 | /* it_size is in number of entries */ |
| 284 | iommu_table_dart.it_size = (dart_tablesize / sizeof(u32)) >> DART_PAGE_FACTOR; | 278 | iommu_table_dart.it_size = dart_tablesize / sizeof(u32); |
| 285 | 279 | ||
| 286 | /* Initialize the common IOMMU code */ | 280 | /* Initialize the common IOMMU code */ |
| 287 | iommu_table_dart.it_base = (unsigned long)dart_vbase; | 281 | iommu_table_dart.it_base = (unsigned long)dart_vbase; |
