]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/gpu/drm/radeon/radeon_ring.c
drm: drop drm_[cm]alloc* helpers
[karo-tx-linux.git] / drivers / gpu / drm / radeon / radeon_ring.c
index 8c7872339c2a6f5e94bf601c47ed421e5caee352..84802b201beff82db56f60589907760e1fb327ac 100644 (file)
@@ -314,7 +314,7 @@ unsigned radeon_ring_backup(struct radeon_device *rdev, struct radeon_ring *ring
        }
 
        /* and then save the content of the ring */
-       *data = drm_malloc_ab(size, sizeof(uint32_t));
+       *data = kvmalloc_array(size, sizeof(uint32_t), GFP_KERNEL);
        if (!*data) {
                mutex_unlock(&rdev->ring_lock);
                return 0;
@@ -356,7 +356,7 @@ int radeon_ring_restore(struct radeon_device *rdev, struct radeon_ring *ring,
        }
 
        radeon_ring_unlock_commit(rdev, ring, false);
-       drm_free_large(data);
+       kvfree(data);
        return 0;
 }