diff options
author | Robert Noland <rnoland@FreeBSD.org> | 2009-03-25 01:41:56 +0000 |
---|---|---|
committer | Robert Noland <rnoland@FreeBSD.org> | 2009-03-25 01:41:56 +0000 |
commit | eccb3bb8f6075127aab2885b6364385c8d7737de (patch) | |
tree | abfd0bec96a170c5e3d7eb89b1ccf5ec1218b4af /sys/dev/drm/drm_scatter.c | |
parent | e88ad97fcdfa8869177e6601efd0f42086780942 (diff) | |
download | src-eccb3bb8f6075127aab2885b6364385c8d7737de.tar.gz src-eccb3bb8f6075127aab2885b6364385c8d7737de.zip |
The GART allocations are a propery of the gart, not of scatter-gather
memory. Track them in the appropriate structure.
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=190399
Diffstat (limited to 'sys/dev/drm/drm_scatter.c')
-rw-r--r-- | sys/dev/drm/drm_scatter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/drm/drm_scatter.c b/sys/dev/drm/drm_scatter.c index 6db7fcb7fa1f..5f8b29b001b7 100644 --- a/sys/dev/drm/drm_scatter.c +++ b/sys/dev/drm/drm_scatter.c @@ -112,7 +112,7 @@ drm_sg_alloc(struct drm_device *dev, struct drm_scatter_gather *request) return ENOMEM; } - entry->sg_dmah = dmah; + entry->dmah = dmah; entry->handle = (unsigned long)dmah->vaddr; DRM_DEBUG("sg alloc handle = %08lx\n", entry->handle); @@ -160,7 +160,7 @@ drm_sg_alloc_ioctl(struct drm_device *dev, void *data, void drm_sg_cleanup(struct drm_sg_mem *entry) { - struct drm_dma_handle *dmah = entry->sg_dmah; + struct drm_dma_handle *dmah = entry->dmah; bus_dmamap_unload(dmah->tag, dmah->map); bus_dmamem_free(dmah->tag, dmah->vaddr, dmah->map); |