drm/amdgpu: rename the files for HMM handling
[linux-2.6-microblaze.git] / drivers / gpu / drm / amd / amdgpu / amdgpu_gem.c
index 91571b1..a0780a4 100644 (file)
@@ -38,6 +38,7 @@
 #include "amdgpu.h"
 #include "amdgpu_display.h"
 #include "amdgpu_dma_buf.h"
+#include "amdgpu_hmm.h"
 #include "amdgpu_xgmi.h"
 
 static const struct drm_gem_object_funcs amdgpu_gem_object_funcs;
@@ -87,7 +88,7 @@ static void amdgpu_gem_object_free(struct drm_gem_object *gobj)
        struct amdgpu_bo *robj = gem_to_amdgpu_bo(gobj);
 
        if (robj) {
-               amdgpu_mn_unregister(robj);
+               amdgpu_hmm_unregister(robj);
                amdgpu_bo_unref(&robj);
        }
 }
@@ -414,7 +415,7 @@ int amdgpu_gem_userptr_ioctl(struct drm_device *dev, void *data,
        if (r)
                goto release_object;
 
-       r = amdgpu_mn_register(bo, args->addr);
+       r = amdgpu_hmm_register(bo, args->addr);
        if (r)
                goto release_object;