From e3a149f08095f1a7321fce890b1337098485f254 Mon Sep 17 00:00:00 2001 From: Jose Fonseca Date: Sat, 7 Jun 2003 12:30:22 +0000 Subject: Check that the AGPGART "drm_agp" symbol pointer is valid before initializing the DRM device - this was causing a kernel oops when the AGPGART module wasn't loaded. --- linux/drm_agp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux/drm_agp.h') diff --git a/linux/drm_agp.h b/linux/drm_agp.h index 27c2b29f..251245e6 100644 --- a/linux/drm_agp.h +++ b/linux/drm_agp.h @@ -70,7 +70,7 @@ typedef struct drm_agp_head { extern int DRM(agp_acquire)(void); extern void DRM(agp_release)(void); -extern void DRM(agp_enable)(unsigned mode); +extern void DRM(agp_enable)(unsigned long mode); extern agp_memory *DRM(agp_allocate_memory)(size_t pages, u32 type); extern int DRM(agp_free_memory)(agp_memory *handle); extern int DRM(agp_bind_memory)(agp_memory *handle, off_t start); -- cgit v1.2.3