summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-04-20 01:37:28 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-04-20 01:37:28 +0000
commitd15a2761499f449265c38e8f552de691fe50c6c0 (patch)
treee5cd167e4e6080e021ff78c3dc23b5a75adb674f
parent23def7e316846328db92365fc54e4860c06a87d0 (diff)
don't prefix misc/ on kernel module nameglxmisc-1-0-0-20000420glxmisc-1-0-0-branch
-rw-r--r--libdrm/xf86drm.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/libdrm/xf86drm.c b/libdrm/xf86drm.c
index 60708144..3b66c19a 100644
--- a/libdrm/xf86drm.c
+++ b/libdrm/xf86drm.c
@@ -220,14 +220,9 @@ static int drmOpenByName(const char *name)
#if defined(XFree86Server)
if (!drmAvailable()) {
/* try to load the kernel module now */
- char filename[1000];
- snprintf(filename, 999, "misc/%s.o", name);
- /* xf86LoadKernelModule will prefix "/lib/modules/<kernel-version>"
- * for Linux, or similar for other OSes.
- */
- if (!xf86LoadKernelModule(filename)) {
- ErrorF(stderr, "[drm] failed to load kernel module \"%s\"\n",
- filename);
+ if (!xf86LoadKernelModule(name)) {
+ ErrorF("[drm] failed to load kernel module \"%s\"\n",
+ name);
return -1;
}
}