diff options
Diffstat (limited to 'drivers/gpu/drm/drm_vm.c')
-rw-r--r-- | drivers/gpu/drm/drm_vm.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/drm_vm.c b/drivers/gpu/drm/drm_vm.c index 2fea2e63a313..ee879d6bb522 100644 --- a/drivers/gpu/drm/drm_vm.c +++ b/drivers/gpu/drm/drm_vm.c | |||
@@ -515,7 +515,7 @@ static int drm_mmap_dma(struct file *filp, struct vm_area_struct *vma) | |||
515 | return 0; | 515 | return 0; |
516 | } | 516 | } |
517 | 517 | ||
518 | resource_size_t drm_core_get_reg_ofs(struct drm_device *dev) | 518 | static resource_size_t drm_core_get_reg_ofs(struct drm_device *dev) |
519 | { | 519 | { |
520 | #ifdef __alpha__ | 520 | #ifdef __alpha__ |
521 | return dev->hose->dense_mem_base - dev->hose->mem_space->start; | 521 | return dev->hose->dense_mem_base - dev->hose->mem_space->start; |
@@ -524,8 +524,6 @@ resource_size_t drm_core_get_reg_ofs(struct drm_device *dev) | |||
524 | #endif | 524 | #endif |
525 | } | 525 | } |
526 | 526 | ||
527 | EXPORT_SYMBOL(drm_core_get_reg_ofs); | ||
528 | |||
529 | /** | 527 | /** |
530 | * mmap DMA memory. | 528 | * mmap DMA memory. |
531 | * | 529 | * |
@@ -612,7 +610,7 @@ int drm_mmap_locked(struct file *filp, struct vm_area_struct *vma) | |||
612 | #endif | 610 | #endif |
613 | case _DRM_FRAME_BUFFER: | 611 | case _DRM_FRAME_BUFFER: |
614 | case _DRM_REGISTERS: | 612 | case _DRM_REGISTERS: |
615 | offset = dev->driver->get_reg_ofs(dev); | 613 | offset = drm_core_get_reg_ofs(dev); |
616 | vma->vm_flags |= VM_IO; /* not in core dump */ | 614 | vma->vm_flags |= VM_IO; /* not in core dump */ |
617 | vma->vm_page_prot = drm_io_prot(map->type, vma); | 615 | vma->vm_page_prot = drm_io_prot(map->type, vma); |
618 | #if !defined(__arm__) | 616 | #if !defined(__arm__) |