diff options
Diffstat (limited to 'drivers/gpu/drm/drm_memory.c')
-rw-r--r-- | drivers/gpu/drm/drm_memory.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/drivers/gpu/drm/drm_memory.c b/drivers/gpu/drm/drm_memory.c index 0c707f533eab..0a436184dd88 100644 --- a/drivers/gpu/drm/drm_memory.c +++ b/drivers/gpu/drm/drm_memory.c | |||
@@ -36,15 +36,6 @@ | |||
36 | #include <linux/highmem.h> | 36 | #include <linux/highmem.h> |
37 | #include "drmP.h" | 37 | #include "drmP.h" |
38 | 38 | ||
39 | #ifdef DEBUG_MEMORY | ||
40 | #include "drm_memory_debug.h" | ||
41 | #else | ||
42 | |||
43 | /** No-op. */ | ||
44 | void drm_mem_init(void) | ||
45 | { | ||
46 | } | ||
47 | |||
48 | /** | 39 | /** |
49 | * Called when "/proc/dri/%dev%/mem" is read. | 40 | * Called when "/proc/dri/%dev%/mem" is read. |
50 | * | 41 | * |
@@ -64,20 +55,6 @@ int drm_mem_info(char *buf, char **start, off_t offset, | |||
64 | return 0; | 55 | return 0; |
65 | } | 56 | } |
66 | 57 | ||
67 | /** Wrapper around kmalloc() and kfree() */ | ||
68 | void *drm_realloc(void *oldpt, size_t oldsize, size_t size, int area) | ||
69 | { | ||
70 | void *pt; | ||
71 | |||
72 | if (!(pt = kmalloc(size, GFP_KERNEL))) | ||
73 | return NULL; | ||
74 | if (oldpt && oldsize) { | ||
75 | memcpy(pt, oldpt, oldsize); | ||
76 | kfree(oldpt); | ||
77 | } | ||
78 | return pt; | ||
79 | } | ||
80 | |||
81 | #if __OS_HAS_AGP | 58 | #if __OS_HAS_AGP |
82 | static void *agp_remap(unsigned long offset, unsigned long size, | 59 | static void *agp_remap(unsigned long offset, unsigned long size, |
83 | struct drm_device * dev) | 60 | struct drm_device * dev) |
@@ -157,8 +134,6 @@ static inline void *agp_remap(unsigned long offset, unsigned long size, | |||
157 | 134 | ||
158 | #endif /* agp */ | 135 | #endif /* agp */ |
159 | 136 | ||
160 | #endif /* debug_memory */ | ||
161 | |||
162 | void drm_core_ioremap(struct drm_local_map *map, struct drm_device *dev) | 137 | void drm_core_ioremap(struct drm_local_map *map, struct drm_device *dev) |
163 | { | 138 | { |
164 | if (drm_core_has_AGP(dev) && | 139 | if (drm_core_has_AGP(dev) && |