summaryrefslogtreecommitdiff
path: root/hw/xfree86/xaa/xaaInitAccel.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-02-01 17:21:34 +1100
committerAdam Jackson <ajax@redhat.com>2008-02-14 08:21:44 +1100
commite91ff09568c5579818b6641e88e95c6fe122cbe7 (patch)
tree86c27ab6eb83c9c2c67f55037f0afe3a5797c117 /hw/xfree86/xaa/xaaInitAccel.c
parent0bdd20a0454c94f902fd4874855125bf7510fcf5 (diff)
Friends don't let friends call xf86AddModuleInfo.
That code only existed to leak memory. It can go now, thanks.
Diffstat (limited to 'hw/xfree86/xaa/xaaInitAccel.c')
-rw-r--r--hw/xfree86/xaa/xaaInitAccel.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/hw/xfree86/xaa/xaaInitAccel.c b/hw/xfree86/xaa/xaaInitAccel.c
index fe0b70a14..1b7c15487 100644
--- a/hw/xfree86/xaa/xaaInitAccel.c
+++ b/hw/xfree86/xaa/xaaInitAccel.c
@@ -93,8 +93,6 @@ static const OptionInfoRec XAAOptions[] = {
OPTV_NONE, {0}, FALSE }
};
-static MODULESETUPPROTO(xaaSetup);
-
static XF86ModuleVersionInfo xaaVersRec =
{
"xaa",
@@ -109,29 +107,7 @@ static XF86ModuleVersionInfo xaaVersRec =
{0,0,0,0}
};
-_X_EXPORT XF86ModuleData xaaModuleData = { &xaaVersRec, xaaSetup, NULL };
-
-ModuleInfoRec XAA = {
- 1,
- "XAA",
- NULL,
- 0,
- XAAAvailableOptions,
-};
-
-/*ARGSUSED*/
-static pointer
-xaaSetup(pointer Module, pointer Options, int *ErrorMajor, int *ErrorMinor)
-{
- static Bool Initialised = FALSE;
-
- if (!Initialised) {
- Initialised = TRUE;
- xf86AddModuleInfo(&XAA, Module);
- }
-
- return (pointer)TRUE;
-}
+_X_EXPORT XF86ModuleData xaaModuleData = { &xaaVersRec, NULL, NULL };
/*ARGSUSED*/
static const OptionInfoRec *