From d15a2761499f449265c38e8f552de691fe50c6c0 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 20 Apr 2000 01:37:28 +0000 Subject: don't prefix misc/ on kernel module name --- libdrm/xf86drm.c | 11 +++-------- 1 file 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/" - * 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; } } -- cgit v1.2.3