patch-2.4.0-test11 linux/drivers/char/drm/mga_drv.c
Next file: linux/drivers/char/drm/mga_state.c
Previous file: linux/drivers/char/drm/memory.c
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Thu Nov 16 14:05:49 2000
- Orig file:
v2.4.0-test10/linux/drivers/char/drm/mga_drv.c
- Orig date:
Sun Oct 8 10:50:16 2000
diff -u --recursive --new-file v2.4.0-test10/linux/drivers/char/drm/mga_drv.c linux/drivers/char/drm/mga_drv.c
@@ -255,8 +255,7 @@
}
dev->agp->memory = NULL;
- if (dev->agp->acquired && drm_agp.release)
- (*drm_agp.release)();
+ if (dev->agp->acquired) _drm_agp_release();
dev->agp->acquired = 0;
dev->agp->enabled = 0;
@@ -338,7 +337,7 @@
/* mga_init is called via init_module at module load time, or via
* linux/init/main.c (this is not currently supported). */
-static int mga_init(void)
+static int __init mga_init(void)
{
int retcode;
drm_device_t *dev = &mga_device;
@@ -398,7 +397,7 @@
/* mga_cleanup is called via cleanup_module at module unload time. */
-static void mga_cleanup(void)
+static void __exit mga_cleanup(void)
{
drm_device_t *dev = &mga_device;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)