From 71df0eed3476d4430a59ce21ca641ac8eecf54e2 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 17 Jun 2005 09:09:17 +0000 Subject: fix up drm_alloc_agp to take a dev arg and not pass crappy agpgart around --- shared-core/mga_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shared-core') 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", -- cgit v1.2.3