Update after module loader simplification upstreams. Fixes loading

in xserver 1.8. ok miod@.
This commit is contained in:
matthieu 2010-08-29 14:43:17 +00:00
parent 1fb6d3c868
commit a52d37219e

View File

@ -1,4 +1,4 @@
/* $OpenBSD: wildcatfb_driver.c,v 1.6 2010/07/23 15:20:33 miod Exp $ */
/* $OpenBSD: wildcatfb_driver.c,v 1.7 2010/08/29 14:43:17 matthieu Exp $ */
/*
* Copyright (c) 2009 Miodrag Vallat.
@ -204,18 +204,6 @@ static const OptionInfoRec WildcatFBOptions[] = {
{ -1, NULL, OPTV_NONE, {0}, FALSE}
};
/* Symbols needed from other modules. */
static const char *fbSymbols[] = {
"fbPictureInit",
"fbScreenInit",
NULL
};
static const char *shadowSymbols[] = {
"shadowAdd",
"shadowSetup",
NULL
};
#ifdef XFree86LOADER
static XF86ModuleVersionInfo WildcatFBVersRec = {
"wildcatfb",
@ -252,7 +240,6 @@ WildcatFBSetup(pointer module, pointer opts, int *errmaj, int *errmin)
if (!setupDone) {
setupDone = TRUE;
xf86AddDriver(&WILDCATFB, module, HaveDriverFuncs);
LoaderRefSymLists(fbSymbols, shadowSymbols, NULL);
return (pointer)1;
} else {
if (errmaj != NULL)
@ -580,14 +567,11 @@ WildcatFBPreInit(ScrnInfoPtr pScrn, int flags)
WildcatFBFreeRec(pScrn);
return FALSE;
}
xf86LoaderReqSymLists(shadowSymbols, NULL);
if (xf86LoadSubModule(pScrn, "fb") == NULL) {
WildcatFBFreeRec(pScrn);
return FALSE;
}
xf86LoaderReqSymLists(fbSymbols, NULL);
TRACE_EXIT("PreInit");
return TRUE;
}