diff options
| -rw-r--r-- | drivers/infiniband/hw/mthca/mthca_provider.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_provider.c b/drivers/infiniband/hw/mthca/mthca_provider.c index 7a58ce90e179..81919a7b4935 100644 --- a/drivers/infiniband/hw/mthca/mthca_provider.c +++ b/drivers/infiniband/hw/mthca/mthca_provider.c | |||
| @@ -349,9 +349,9 @@ static int mthca_mmap_uar(struct ib_ucontext *context, | |||
| 349 | 349 | ||
| 350 | vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot); | 350 | vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot); |
| 351 | 351 | ||
| 352 | if (remap_pfn_range(vma, vma->vm_start, | 352 | if (io_remap_pfn_range(vma, vma->vm_start, |
| 353 | to_mucontext(context)->uar.pfn, | 353 | to_mucontext(context)->uar.pfn, |
| 354 | PAGE_SIZE, vma->vm_page_prot)) | 354 | PAGE_SIZE, vma->vm_page_prot)) |
| 355 | return -EAGAIN; | 355 | return -EAGAIN; |
| 356 | 356 | ||
| 357 | return 0; | 357 | return 0; |
