diff options
Diffstat (limited to 'arch/alpha/kernel/pci_iommu.c')
-rw-r--r-- | arch/alpha/kernel/pci_iommu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/alpha/kernel/pci_iommu.c b/arch/alpha/kernel/pci_iommu.c index d15aedfe6066..8449504f5e0b 100644 --- a/arch/alpha/kernel/pci_iommu.c +++ b/arch/alpha/kernel/pci_iommu.c | |||
@@ -876,7 +876,7 @@ iommu_release(struct pci_iommu_arena *arena, long pg_start, long pg_count) | |||
876 | 876 | ||
877 | int | 877 | int |
878 | iommu_bind(struct pci_iommu_arena *arena, long pg_start, long pg_count, | 878 | iommu_bind(struct pci_iommu_arena *arena, long pg_start, long pg_count, |
879 | unsigned long *physaddrs) | 879 | struct page **pages) |
880 | { | 880 | { |
881 | unsigned long flags; | 881 | unsigned long flags; |
882 | unsigned long *ptes; | 882 | unsigned long *ptes; |
@@ -896,7 +896,7 @@ iommu_bind(struct pci_iommu_arena *arena, long pg_start, long pg_count, | |||
896 | } | 896 | } |
897 | 897 | ||
898 | for(i = 0, j = pg_start; i < pg_count; i++, j++) | 898 | for(i = 0, j = pg_start; i < pg_count; i++, j++) |
899 | ptes[j] = mk_iommu_pte(physaddrs[i]); | 899 | ptes[j] = mk_iommu_pte(page_to_phys(pages[i])); |
900 | 900 | ||
901 | spin_unlock_irqrestore(&arena->lock, flags); | 901 | spin_unlock_irqrestore(&arena->lock, flags); |
902 | 902 | ||