summaryrefslogtreecommitdiff
path: root/drivers/char/drm/drm_memory.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@starflyer.(none)>2005-07-07 14:33:26 +0400
committerDave Airlie <airlied@linux.ie>2005-07-07 14:33:26 +0400
commitb9523249de59c49e7c2cc83dfa73fb011a489a45 (patch)
tree0cebe6a2eeec658f6beb588fb7c9b6e5a5af4033 /drivers/char/drm/drm_memory.c
parentf650130803c4c0b5e5d76eff24faae722e3a69e2 (diff)
downloadlinux-b9523249de59c49e7c2cc83dfa73fb011a489a45.tar.xz
drm: use kcalloc now that it is available..
Make the DRM drm_calloc call kcalloc now. Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drm_memory.c')
-rw-r--r--drivers/char/drm/drm_memory.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/char/drm/drm_memory.c b/drivers/char/drm/drm_memory.c
index 7f53f756c052..ace3d42f4407 100644
--- a/drivers/char/drm/drm_memory.c
+++ b/drivers/char/drm/drm_memory.c
@@ -65,19 +65,6 @@ int drm_mem_info(char *buf, char **start, off_t offset,
return 0;
}
-/** Wrapper around kmalloc() */
-void *drm_calloc(size_t nmemb, size_t size, int area)
-{
- void *addr;
-
- addr = kmalloc(size * nmemb, GFP_KERNEL);
- if (addr != NULL)
- memset((void *)addr, 0, size * nmemb);
-
- return addr;
-}
-EXPORT_SYMBOL(drm_calloc);
-
/** Wrapper around kmalloc() and kfree() */
void *drm_realloc(void *oldpt, size_t oldsize, size_t size, int area)
{