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 --- linux-core/drm_memory.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'linux-core/drm_memory.c') diff --git a/linux-core/drm_memory.c b/linux-core/drm_memory.c index 2cc3dc67..69610046 100644 --- a/linux-core/drm_memory.c +++ b/linux-core/drm_memory.c @@ -152,14 +152,14 @@ void drm_free_pages(unsigned long address, int order, int area) #if __OS_HAS_AGP /** Wrapper around agp_allocate_memory() */ #if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,11) -DRM_AGP_MEM *drm_alloc_agp(int pages, u32 type) +DRM_AGP_MEM *drm_alloc_agp(drm_device_t *dev, int pages, u32 type) { return drm_agp_allocate_memory(pages, type); } #else -DRM_AGP_MEM *drm_alloc_agp(struct agp_bridge_data *bridge, int pages, u32 type) +DRM_AGP_MEM *drm_alloc_agp(drm_device_t *dev, int pages, u32 type) { - return drm_agp_allocate_memory(bridge, pages, type); + return drm_agp_allocate_memory(dev->agp->bridge, pages, type); } #endif EXPORT_SYMBOL(drm_alloc_agp); -- cgit v1.2.3