diff options
author | Adam Jackson <ajax@redhat.com> | 2009-05-28 15:17:58 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2009-05-28 15:17:58 -0400 |
commit | 97498c048c897e5753e61d3b4ab231025974d67c (patch) | |
tree | 2dc1578174218cc0f299a5ee0f0766da3719c309 /src | |
parent | 536e5df957698251206326edc5a13e833f7c72b1 (diff) |
Remove useless loader symbol lists.
Diffstat (limited to 'src')
-rw-r--r-- | src/smi_driver.c | 124 |
1 files changed, 1 insertions, 123 deletions
diff --git a/src/smi_driver.c b/src/smi_driver.c index 985563b..b47f774 100644 --- a/src/smi_driver.c +++ b/src/smi_driver.c @@ -190,104 +190,6 @@ static const OptionInfoRec SMIOptions[] = { -1, NULL, OPTV_NONE, {0}, FALSE } }; -/* - * Lists of symbols that may/may not be required by this driver. - * This allows the loader to know which ones to issue warnings for. - * - * Note that vgahwSymbols and xaaSymbols are referenced outside the - * XFree86LOADER define in later code, so are defined outside of that - * define here also. - */ - -static const char *vgahwSymbols[] = -{ - "vgaHWCopyReg", - "vgaHWGetHWRec", - "vgaHWGetIOBase", - "vgaHWGetIndex", - "vgaHWInit", - "vgaHWLock", - "vgaHWMapMem", - "vgaHWProtect", - "vgaHWRestore", - "vgaHWSave", - "vgaHWSaveScreen", - "vgaHWSetMmioFuncs", - "vgaHWSetStdFuncs", - "vgaHWUnmapMem", - "vgaHWddc1SetSpeedWeak", - NULL -}; - -static const char *xaaSymbols[] = -{ - "XAAGetCopyROP", - "XAACreateInfoRec", - "XAADestroyInfoRec", - "XAAGetFallbackOps", - "XAAInit", - "XAAGetPatternROP", - NULL -}; - -static const char *exaSymbols[] = -{ - "exaDriverAlloc", - "exaDriverInit", - "exaDriverFini", - "exaOffscreenAlloc", - "exaOffscreenFree", - "exaGetPixmapPitch", - "exaGetPixmapOffset", - "exaGetPixmapSize", - NULL -}; - -static const char *ddcSymbols[] = -{ - "xf86PrintEDID", - "xf86DoEDID_DDC1", - "xf86DoEDID_DDC2", - "xf86SetDDCproperties", - NULL -}; - -static const char *i2cSymbols[] = -{ - "xf86CreateI2CBusRec", - "xf86CreateI2CDevRec", - "xf86DestroyI2CBusRec", - "xf86DestroyI2CDevRec", - "xf86I2CBusInit", - "xf86I2CDevInit", - "xf86I2CReadBytes", - "xf86I2CWriteByte", - NULL -}; - -static const char *int10Symbols[] = -{ - "xf86ExecX86int10", - "xf86FreeInt10", - "xf86InitInt10", - NULL -}; - -static const char *vbeSymbols[] = -{ - "VBEInit", - "vbeDoEDID", - "vbeFree", - NULL -}; - -static const char *fbSymbols[] = -{ - "fbPictureInit", - "fbScreenInit", - NULL -}; - #ifdef XFree86LOADER static MODULESETUPPROTO(siliconmotionSetup); @@ -330,19 +232,6 @@ siliconmotionSetup(pointer module, pointer opts, int *errmaj, int *errmin) xf86AddDriver(&SILICONMOTION, module, 0); /* - * Modules that this driver always requires can be loaded here - * by calling LoadSubModule(). - */ - - /* - * Tell the loader about symbols from other modules that this module - * might refer to. - */ - LoaderRefSymLists(vgahwSymbols, fbSymbols, xaaSymbols, exaSymbols, - ddcSymbols, i2cSymbols, int10Symbols, vbeSymbols, - NULL); - - /* * The return value must be non-NULL on success even though there * is no TearDownProc. */ @@ -537,8 +426,6 @@ SMI_PreInit(ScrnInfoPtr pScrn, int flags) if (!xf86LoadSubModule(pScrn, "vgahw")) LEAVE(FALSE); - xf86LoaderReqSymLists(vgahwSymbols, NULL); - /* * Allocate a vgaHWRec */ @@ -721,12 +608,10 @@ SMI_PreInit(ScrnInfoPtr pScrn, int flags) if (pSmi->useBIOS) { if (xf86LoadSubModule(pScrn,"int10")) { - xf86LoaderReqSymLists(int10Symbols,NULL); pSmi->pInt10 = xf86InitInt10(pEnt->index); } if (pSmi->pInt10 && xf86LoadSubModule(pScrn, "vbe")) { - xf86LoaderReqSymLists(vbeSymbols, NULL); pSmi->pVbe = VBEInit(pSmi->pInt10, pEnt->index); } @@ -890,12 +775,9 @@ SMI_PreInit(ScrnInfoPtr pScrn, int flags) if(!IS_MSOC(pSmi)){ if (xf86LoadSubModule(pScrn, "i2c")) { - xf86LoaderReqSymLists(i2cSymbols, NULL); SMI_I2CInit(pScrn); } - if (xf86LoadSubModule(pScrn, "ddc")) { - xf86LoaderReqSymLists(ddcSymbols, NULL); - } + xf86LoadSubModule(pScrn, "ddc"); } /* @@ -981,8 +863,6 @@ SMI_PreInit(ScrnInfoPtr pScrn, int flags) LEAVE(FALSE); } - xf86LoaderReqSymLists(fbSymbols, NULL); - /* Load XAA or EXA if needed */ if (!pSmi->NoAccel) { if (!pSmi->useEXA) { @@ -990,7 +870,6 @@ SMI_PreInit(ScrnInfoPtr pScrn, int flags) SMI_FreeRec(pScrn); LEAVE(FALSE); } - xf86LoaderReqSymLists(xaaSymbols, NULL); } else { XF86ModReqInfo req; int errmaj, errmin; @@ -1005,7 +884,6 @@ SMI_PreInit(ScrnInfoPtr pScrn, int flags) SMI_FreeRec(pScrn); LEAVE(FALSE); } - xf86LoaderReqSymLists(exaSymbols, NULL); } } |