diff options
Diffstat (limited to 'shared/sis_mm.c')
-rw-r--r-- | shared/sis_mm.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/shared/sis_mm.c b/shared/sis_mm.c index cbfab011e..233843d5d 100644 --- a/shared/sis_mm.c +++ b/shared/sis_mm.c @@ -330,7 +330,7 @@ int sis_ioctl_agp_free( DRM_IOCTL_ARGS ) return 0; } -int sis_init_context(drm_device_t *dev, int context) +int sis_init_context(struct drm_device *dev, int context) { int i; @@ -362,7 +362,7 @@ int sis_init_context(drm_device_t *dev, int context) return 1; } -int sis_final_context(drm_device_t *dev, int context) +int sis_final_context(struct drm_device *dev, int context) { int i; @@ -408,3 +408,9 @@ int sis_final_context(drm_device_t *dev, int context) return 1; } + +void DRM(driver_register_fns)(drm_device_t *dev) +{ + dev->fn_tbl.context_ctor = sis_init_context; + dev->fn_tbl.context_dtor = sis_final_context; +} |