diff --git a/sys/dev/drm/drm_vm.c b/sys/dev/drm/drm_vm.c index 556a196b601d..2de97b41d08b 100644 --- a/sys/dev/drm/drm_vm.c +++ b/sys/dev/drm/drm_vm.c @@ -73,7 +73,7 @@ paddr_t drm_mmap(dev_t kdev, off_t offset, int prot) DRM_SPINUNLOCK(&dev->dma_lock); return 0; #else - return atop(pphys); + return pphys; #endif } else { DRM_SPINUNLOCK(&dev->dma_lock); @@ -134,7 +134,7 @@ paddr_t drm_mmap(dev_t kdev, off_t offset, int prot) *paddr = phys; return 0; #else - return atop(phys); + return phys; #endif }