summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2005-06-17 09:09:17 +0000
committerDave Airlie <airlied@linux.ie>2005-06-17 09:09:17 +0000
commit71df0eed3476d4430a59ce21ca641ac8eecf54e2 (patch)
tree1b49d7846e3ca3dc516afa126498920bb642c002 /shared-core
parent0569fe7a528e5e0753d9f72807a8f4310c6c9782 (diff)
fix up drm_alloc_agp to take a dev arg and not pass crappy agpgart around
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/mga_dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-core/mga_dma.c b/shared-core/mga_dma.c
index 998886d6..a632f35a 100644
--- a/shared-core/mga_dma.c
+++ b/shared-core/mga_dma.c
@@ -475,7 +475,7 @@ static int mga_do_agp_dma_bootstrap(drm_device_t * dev,
/* Allocate and bind AGP memory. */
dev_priv->agp_pages = agp_size / PAGE_SIZE;
- dev_priv->agp_mem = drm_alloc_agp( dev_priv->agp_pages, 0 );
+ dev_priv->agp_mem = drm_alloc_agp( dev, dev_priv->agp_pages, 0 );
if (dev_priv->agp_mem == NULL) {
dev_priv->agp_pages = 0;
DRM_ERROR("Unable to allocate %uMB AGP memory\n",