diff options
Diffstat (limited to 'drivers/iommu/amd_iommu.c')
-rw-r--r-- | drivers/iommu/amd_iommu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index 0e4227f457af..4ee277a8521a 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c | |||
@@ -1283,7 +1283,7 @@ static int alloc_new_range(struct dma_ops_domain *dma_dom, | |||
1283 | if (!pte || !IOMMU_PTE_PRESENT(*pte)) | 1283 | if (!pte || !IOMMU_PTE_PRESENT(*pte)) |
1284 | continue; | 1284 | continue; |
1285 | 1285 | ||
1286 | dma_ops_reserve_addresses(dma_dom, i << PAGE_SHIFT, 1); | 1286 | dma_ops_reserve_addresses(dma_dom, i >> PAGE_SHIFT, 1); |
1287 | } | 1287 | } |
1288 | 1288 | ||
1289 | update_domain(&dma_dom->domain); | 1289 | update_domain(&dma_dom->domain); |
@@ -2495,7 +2495,7 @@ static unsigned device_dma_ops_init(void) | |||
2495 | 2495 | ||
2496 | void __init amd_iommu_init_api(void) | 2496 | void __init amd_iommu_init_api(void) |
2497 | { | 2497 | { |
2498 | register_iommu(&amd_iommu_ops); | 2498 | bus_set_iommu(&pci_bus_type, &amd_iommu_ops); |
2499 | } | 2499 | } |
2500 | 2500 | ||
2501 | int __init amd_iommu_init_dma_ops(void) | 2501 | int __init amd_iommu_init_dma_ops(void) |