summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/radeon_mem.c
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-03-26 07:25:07 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-03-26 07:25:07 +0000
commit12513825f03c1f486b0442b73d892b38fe1cd2a4 (patch)
tree05941471ca03e5ce33a0cbbafe0e05bb77e35739 /sys/dev/pci/drm/radeon_mem.c
parenta09a0a7005c9f8faae78ae1dc0b83c57bec59387 (diff)
The drm_* allocation functions have been #defined to not use most of
their arguments for a while. Actually go through the code and remove the extraneous arguments. Makes things easier to read.
Diffstat (limited to 'sys/dev/pci/drm/radeon_mem.c')
-rw-r--r--sys/dev/pci/drm/radeon_mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/radeon_mem.c b/sys/dev/pci/drm/radeon_mem.c
index f753edc80b5..d095959bde7 100644
--- a/sys/dev/pci/drm/radeon_mem.c
+++ b/sys/dev/pci/drm/radeon_mem.c
@@ -57,7 +57,7 @@ radeon_mem_release(struct drm_file *file_priv, struct drm_heap *heap)
q->file_priv == NULL) {
p->size += q->size;
TAILQ_REMOVE(heap, q, link);
- drm_free(q, sizeof(*q), DRM_MEM_DRIVER);
+ drm_free(q);
}
q = TAILQ_NEXT(p, link);
}
@@ -75,7 +75,7 @@ radeon_mem_takedown(struct drm_heap *heap)
while ((p = TAILQ_FIRST(heap)) != NULL) {
TAILQ_REMOVE(heap, p, link);
- drm_free(p, sizeof(*p), DRM_MEM_DRIVER);
+ drm_free(p);
}
}