diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-20 13:15:30 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-20 13:15:30 -0400 |
commit | 43813f399c72aa22e01a680559c1cb5274bf2140 (patch) | |
tree | 933c0e7c445b9c3478b5a0db06a162d0d39f00f2 /drivers/gpu/drm/drm_stub.c | |
parent | a552f0af753eb4b5bbbe9eff205fe874b04c4583 (diff) | |
parent | 0b7af262aba912f52bc6ef76f1bc0960b01b8502 (diff) |
Merge branch 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6
* 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6: (24 commits)
agp/intel: Make intel_i965_mask_memory use dma_addr_t for physical addresses
agp: add user mapping support to ATI AGP bridge.
drm/i915: enable GEM on PAE.
drm/radeon: fix unused variables warning
agp: switch AGP to use page array instead of unsigned long array
agpgart: detected ALi M???? chipset with M1621
drm/radeon: command stream checker for r3xx-r5xx hardware
drm/radeon: Fully initialize LVDS info also when we can't get it from the ROM.
radeon: Fix CP byte order on big endian architectures with KMS.
agp/uninorth: Handle user memory types.
drm/ttm: Add some powerpc cache flush code.
radeon: Enable modesetting on non-x86.
drm/radeon: Respect AGP cant_use_aperture flag.
drm: EDID endianness fixes.
drm/radeon: this VRAM vs aperture test is wrong, just remove it.
drm/ttm: fix an error path to exit function correctly
drm: Apply "Memory fragmentation from lost alignment blocks"
ttm: Return -ERESTART when a signal interrupts bo eviction.
drm: Remove memory debugging infrastructure.
drm/i915: Clear fence register on tiling stride change.
...
Diffstat (limited to 'drivers/gpu/drm/drm_stub.c')
-rw-r--r-- | drivers/gpu/drm/drm_stub.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/drivers/gpu/drm/drm_stub.c b/drivers/gpu/drm/drm_stub.c index 387a8de1bc7..155a5bbce68 100644 --- a/drivers/gpu/drm/drm_stub.c +++ b/drivers/gpu/drm/drm_stub.c | |||
@@ -107,7 +107,7 @@ struct drm_master *drm_master_create(struct drm_minor *minor) | |||
107 | { | 107 | { |
108 | struct drm_master *master; | 108 | struct drm_master *master; |
109 | 109 | ||
110 | master = drm_calloc(1, sizeof(*master), DRM_MEM_DRIVER); | 110 | master = kzalloc(sizeof(*master), GFP_KERNEL); |
111 | if (!master) | 111 | if (!master) |
112 | return NULL; | 112 | return NULL; |
113 | 113 | ||
@@ -149,7 +149,7 @@ static void drm_master_destroy(struct kref *kref) | |||
149 | } | 149 | } |
150 | 150 | ||
151 | if (master->unique) { | 151 | if (master->unique) { |
152 | drm_free(master->unique, master->unique_size, DRM_MEM_DRIVER); | 152 | kfree(master->unique); |
153 | master->unique = NULL; | 153 | master->unique = NULL; |
154 | master->unique_len = 0; | 154 | master->unique_len = 0; |
155 | } | 155 | } |
@@ -157,12 +157,12 @@ static void drm_master_destroy(struct kref *kref) | |||
157 | list_for_each_entry_safe(pt, next, &master->magicfree, head) { | 157 | list_for_each_entry_safe(pt, next, &master->magicfree, head) { |
158 | list_del(&pt->head); | 158 | list_del(&pt->head); |
159 | drm_ht_remove_item(&master->magiclist, &pt->hash_item); | 159 | drm_ht_remove_item(&master->magiclist, &pt->hash_item); |
160 | drm_free(pt, sizeof(*pt), DRM_MEM_MAGIC); | 160 | kfree(pt); |
161 | } | 161 | } |
162 | 162 | ||
163 | drm_ht_remove(&master->magiclist); | 163 | drm_ht_remove(&master->magiclist); |
164 | 164 | ||
165 | drm_free(master, sizeof(*master), DRM_MEM_DRIVER); | 165 | kfree(master); |
166 | } | 166 | } |
167 | 167 | ||
168 | void drm_master_put(struct drm_master **master) | 168 | void drm_master_put(struct drm_master **master) |
@@ -390,7 +390,7 @@ int drm_get_dev(struct pci_dev *pdev, const struct pci_device_id *ent, | |||
390 | 390 | ||
391 | DRM_DEBUG("\n"); | 391 | DRM_DEBUG("\n"); |
392 | 392 | ||
393 | dev = drm_calloc(1, sizeof(*dev), DRM_MEM_STUB); | 393 | dev = kzalloc(sizeof(*dev), GFP_KERNEL); |
394 | if (!dev) | 394 | if (!dev) |
395 | return -ENOMEM; | 395 | return -ENOMEM; |
396 | 396 | ||
@@ -443,7 +443,7 @@ err_g3: | |||
443 | err_g2: | 443 | err_g2: |
444 | pci_disable_device(pdev); | 444 | pci_disable_device(pdev); |
445 | err_g1: | 445 | err_g1: |
446 | drm_free(dev, sizeof(*dev), DRM_MEM_STUB); | 446 | kfree(dev); |
447 | return ret; | 447 | return ret; |
448 | } | 448 | } |
449 | EXPORT_SYMBOL(drm_get_dev); | 449 | EXPORT_SYMBOL(drm_get_dev); |
@@ -516,7 +516,7 @@ void drm_put_dev(struct drm_device *dev) | |||
516 | dev->driver->unload(dev); | 516 | dev->driver->unload(dev); |
517 | 517 | ||
518 | if (drm_core_has_AGP(dev) && dev->agp) { | 518 | if (drm_core_has_AGP(dev) && dev->agp) { |
519 | drm_free(dev->agp, sizeof(*dev->agp), DRM_MEM_AGPLISTS); | 519 | kfree(dev->agp); |
520 | dev->agp = NULL; | 520 | dev->agp = NULL; |
521 | } | 521 | } |
522 | 522 | ||
@@ -535,10 +535,9 @@ void drm_put_dev(struct drm_device *dev) | |||
535 | drm_put_minor(&dev->primary); | 535 | drm_put_minor(&dev->primary); |
536 | 536 | ||
537 | if (dev->devname) { | 537 | if (dev->devname) { |
538 | drm_free(dev->devname, strlen(dev->devname) + 1, | 538 | kfree(dev->devname); |
539 | DRM_MEM_DRIVER); | ||
540 | dev->devname = NULL; | 539 | dev->devname = NULL; |
541 | } | 540 | } |
542 | drm_free(dev, sizeof(*dev), DRM_MEM_STUB); | 541 | kfree(dev); |
543 | } | 542 | } |
544 | EXPORT_SYMBOL(drm_put_dev); | 543 | EXPORT_SYMBOL(drm_put_dev); |