[IB/mthca]: Use io_remap_pfn_range for PCI space
authorMichael S. Tsirkin <mst@mellanox.co.il>
Wed, 27 Jul 2005 21:42:45 +0000 (14:42 -0700)
committerRoland Dreier <roland@eddore.topspincom.com>
Wed, 27 Jul 2005 21:42:45 +0000 (14:42 -0700)
Use io_remap_pfn_range to remap IO pages (remap_pfn_range is for memory).

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_provider.c

index 7a58ce90e1799490d503503c641de07acf73a2db..81919a7b4935d97983f00170a302e0c6e0995460 100644 (file)
@@ -349,9 +349,9 @@ static int mthca_mmap_uar(struct ib_ucontext *context,
 
        vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
 
-       if (remap_pfn_range(vma, vma->vm_start,
-                           to_mucontext(context)->uar.pfn,
-                           PAGE_SIZE, vma->vm_page_prot))
+       if (io_remap_pfn_range(vma, vma->vm_start,
+                              to_mucontext(context)->uar.pfn,
+                              PAGE_SIZE, vma->vm_page_prot))
                return -EAGAIN;
 
        return 0;