xfree86: Remove useless module setup functions where appropriate

Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
Adam Jackson 2010-09-18 07:27:13 -04:00
parent 6130170e7e
commit 682a3ee608
10 changed files with 10 additions and 96 deletions

View File

@ -21,8 +21,6 @@
#define PAGE_MASK (~(getpagesize() - 1)) #define PAGE_MASK (~(getpagesize() - 1))
static MODULESETUPPROTO(fbdevhwSetup);
static XF86ModuleVersionInfo fbdevHWVersRec = static XF86ModuleVersionInfo fbdevHWVersRec =
{ {
"fbdevhw", "fbdevhw",
@ -39,16 +37,10 @@ static XF86ModuleVersionInfo fbdevHWVersRec =
_X_EXPORT XF86ModuleData fbdevhwModuleData = { _X_EXPORT XF86ModuleData fbdevhwModuleData = {
&fbdevHWVersRec, &fbdevHWVersRec,
fbdevhwSetup, NULL,
NULL NULL
}; };
static pointer
fbdevhwSetup(pointer module, pointer opts, int *errmaj, int *errmin)
{
return (pointer)1;
}
#include <fcntl.h> #include <fcntl.h>
#include <errno.h> #include <errno.h>
#include <sys/mman.h> #include <sys/mman.h>

View File

@ -4,8 +4,6 @@
#include "xf86Module.h" #include "xf86Module.h"
static MODULESETUPPROTO(bt829Setup);
static XF86ModuleVersionInfo bt829VersRec = static XF86ModuleVersionInfo bt829VersRec =
{ {
"bt829", "bt829",
@ -20,9 +18,4 @@ static XF86ModuleVersionInfo bt829VersRec =
{0,0,0,0} {0,0,0,0}
}; };
_X_EXPORT XF86ModuleData bt829ModuleData = { &bt829VersRec, bt829Setup, NULL }; _X_EXPORT XF86ModuleData bt829ModuleData = { &bt829VersRec, NULL, NULL };
static pointer
bt829Setup(pointer module, pointer opts, int *errmaj, int *errmin) {
return (pointer)1;
}

View File

@ -4,8 +4,6 @@
#include "xf86Module.h" #include "xf86Module.h"
static MODULESETUPPROTO(fi1236Setup);
static XF86ModuleVersionInfo fi1236VersRec = static XF86ModuleVersionInfo fi1236VersRec =
{ {
"fi1236", "fi1236",
@ -22,11 +20,6 @@ static XF86ModuleVersionInfo fi1236VersRec =
_X_EXPORT XF86ModuleData fi1236ModuleData = { _X_EXPORT XF86ModuleData fi1236ModuleData = {
&fi1236VersRec, &fi1236VersRec,
fi1236Setup, NULL,
NULL NULL
}; };
static pointer
fi1236Setup(pointer module, pointer opts, int *errmaj, int *errmin) {
return (pointer)1;
}

View File

@ -4,8 +4,6 @@
#include "xf86Module.h" #include "xf86Module.h"
static MODULESETUPPROTO(msp3430Setup);
static XF86ModuleVersionInfo msp3430VersRec = static XF86ModuleVersionInfo msp3430VersRec =
{ {
"msp3430", "msp3430",
@ -22,11 +20,6 @@ static XF86ModuleVersionInfo msp3430VersRec =
_X_EXPORT XF86ModuleData msp3430ModuleData = { _X_EXPORT XF86ModuleData msp3430ModuleData = {
&msp3430VersRec, &msp3430VersRec,
msp3430Setup, NULL,
NULL NULL
}; };
static pointer
msp3430Setup(pointer module, pointer opts, int *errmaj, int *errmin) {
return (pointer)1;
}

View File

@ -4,8 +4,6 @@
#include "xf86Module.h" #include "xf86Module.h"
static MODULESETUPPROTO(tda8425Setup);
static XF86ModuleVersionInfo tda8425VersRec = static XF86ModuleVersionInfo tda8425VersRec =
{ {
"tda8425", "tda8425",
@ -22,11 +20,6 @@ static XF86ModuleVersionInfo tda8425VersRec =
_X_EXPORT XF86ModuleData tda8425ModuleData = { _X_EXPORT XF86ModuleData tda8425ModuleData = {
&tda8425VersRec, &tda8425VersRec,
tda8425Setup, NULL,
NULL NULL
}; };
static pointer
tda8425Setup(pointer module, pointer opts, int *errmaj, int *errmin) {
return (pointer)1;
}

View File

@ -4,8 +4,6 @@
#include "xf86Module.h" #include "xf86Module.h"
static MODULESETUPPROTO(tda9850Setup);
static XF86ModuleVersionInfo tda9850VersRec = static XF86ModuleVersionInfo tda9850VersRec =
{ {
"tda9850", "tda9850",
@ -22,11 +20,6 @@ static XF86ModuleVersionInfo tda9850VersRec =
_X_EXPORT XF86ModuleData tda9850ModuleData = { _X_EXPORT XF86ModuleData tda9850ModuleData = {
&tda9850VersRec, &tda9850VersRec,
tda9850Setup, NULL,
NULL NULL
}; };
static pointer
tda9850Setup(pointer module, pointer opts, int *errmaj, int *errmin) {
return (pointer)1;
}

View File

@ -4,8 +4,6 @@
#include "xf86Module.h" #include "xf86Module.h"
static MODULESETUPPROTO(tda9885Setup);
static XF86ModuleVersionInfo tda9885VersRec = static XF86ModuleVersionInfo tda9885VersRec =
{ {
"tda9885", "tda9885",
@ -22,11 +20,6 @@ static XF86ModuleVersionInfo tda9885VersRec =
_X_EXPORT XF86ModuleData tda9885ModuleData = { _X_EXPORT XF86ModuleData tda9885ModuleData = {
&tda9885VersRec, &tda9885VersRec,
tda9885Setup, NULL,
NULL NULL
}; };
static pointer
tda9885Setup(pointer module, pointer opts, int *errmaj, int *errmin) {
return (pointer)1;
}

View File

@ -4,8 +4,6 @@
#include "xf86Module.h" #include "xf86Module.h"
static MODULESETUPPROTO(uda1380Setup);
static XF86ModuleVersionInfo uda1380VersRec = static XF86ModuleVersionInfo uda1380VersRec =
{ {
"uda1380", "uda1380",
@ -22,11 +20,6 @@ static XF86ModuleVersionInfo uda1380VersRec =
_X_EXPORT XF86ModuleData uda1380ModuleData = { _X_EXPORT XF86ModuleData uda1380ModuleData = {
&uda1380VersRec, &uda1380VersRec,
uda1380Setup, NULL,
NULL NULL
}; };
static pointer
uda1380Setup(pointer module, pointer opts, int *errmaj, int *errmin) {
return (pointer)1;
}

View File

@ -22,8 +22,6 @@
#define combine(a,b) concat(a,b) #define combine(a,b) concat(a,b)
#define NAME(x) combine(MOD_NAME,x) #define NAME(x) combine(MOD_NAME,x)
static MODULESETUPPROTO(NAME(Setup));
static XF86ModuleVersionInfo NAME(VersRec) = static XF86ModuleVersionInfo NAME(VersRec) =
{ {
STRING(NAME( )), STRING(NAME( )),
@ -40,25 +38,6 @@ static XF86ModuleVersionInfo NAME(VersRec) =
_X_EXPORT XF86ModuleData NAME(ModuleData) = { _X_EXPORT XF86ModuleData NAME(ModuleData) = {
&NAME(VersRec), &NAME(VersRec),
NAME(Setup), NULL,
NULL NULL
}; };
static pointer
NAME(Setup)(pointer module, pointer opts, int *errmaj, int *errmin)
{
static Bool setupDone = FALSE;
if (!setupDone) {
setupDone = TRUE;
/*
* Tell the loader about symbols from other modules that this module
* might refer to.
*/
}
/*
* The return value must be non-NULL on success even though there
* is no TearDownProc.
*/
return (pointer)1;
}

View File

@ -6,8 +6,6 @@
#include "xf86str.h" #include "xf86str.h"
#include "vbe.h" #include "vbe.h"
static MODULESETUPPROTO(vbeSetup);
static XF86ModuleVersionInfo vbeVersRec = static XF86ModuleVersionInfo vbeVersRec =
{ {
"vbe", "vbe",
@ -22,10 +20,4 @@ static XF86ModuleVersionInfo vbeVersRec =
{0,0,0,0} {0,0,0,0}
}; };
_X_EXPORT XF86ModuleData vbeModuleData = { &vbeVersRec, vbeSetup, NULL }; _X_EXPORT XF86ModuleData vbeModuleData = { &vbeVersRec, NULL, NULL };
static pointer
vbeSetup(pointer module, pointer opts, int *errmaj, int *errmin)
{
return (pointer)1;
}