summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2004-10-23 14:00:53 +0000
committerDave Airlie <airlied@linux.ie>2004-10-23 14:00:53 +0000
commit4b29f857685e4fc6c8901a061c6de7b86ee3e993 (patch)
tree2cdfc671f46fe1f2c31429bdd9ffd0057f1eb9db /linux-core
parent1473556e065b1970196b8bb542574cd1e275bb00 (diff)
fix inter module put/get
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drm_drv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/drm_drv.c b/linux-core/drm_drv.c
index 7673aaa3..a9eef8bc 100644
--- a/linux-core/drm_drv.c
+++ b/linux-core/drm_drv.c
@@ -493,7 +493,7 @@ static int __init drm_core_init(void)
}
drm_agp = symbol_get(drm_agp_entry);
if (!drm_agp) {
- drm_agp = inter_module_get("agp");
+ drm_agp = inter_module_get("drm_agp");
use_inter_module = 1;
}
DRM_DEBUG("drm_agp %p\n", drm_agp);
@@ -515,7 +515,7 @@ static void __exit drm_core_exit(void)
{
if (drm_agp) {
if (use_inter_module)
- inter_module_put("agp");
+ inter_module_put("drm_agp");
else
symbol_put(drm_agp_entry);
}