diff options
author | Jose Fonseca <jrfonseca@users.sourceforge.net> | 2003-06-07 12:30:22 +0000 |
---|---|---|
committer | Jose Fonseca <jrfonseca@users.sourceforge.net> | 2003-06-07 12:30:22 +0000 |
commit | e3a149f08095f1a7321fce890b1337098485f254 (patch) | |
tree | 2ca7efdb5a5e7e76c443135268cac9ff1fd37851 /linux/drm_agp.h | |
parent | f723f743c55156039525a5f49dfe6e0fd141c8df (diff) |
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.
Diffstat (limited to 'linux/drm_agp.h')
-rw-r--r-- | linux/drm_agp.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |