summaryrefslogtreecommitdiff
path: root/src/lg_driver.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2016-04-13 16:37:38 -0400
committerAdam Jackson <ajax@redhat.com>2016-04-27 17:09:11 -0400
commitadaf1fe744df8d37acdb8b157abc5034b8ea1073 (patch)
treebe7ca7852ee9f3cea9decf824e6168a59ada9844 /src/lg_driver.c
parent82db44fe8a726a4a1192b1b93992b642d0ec17b3 (diff)
downloadxorg-driver-xf86-video-cirrus-adaf1fe744df8d37acdb8b157abc5034b8ea1073.tar.gz
Remove (almost) no-op setup functions
These became practical no-ops when I removed reference to the loader symbol lists. gcc will still emit code (and bss) for them though. No functional change, just doing it to prove that nothing special happens at submodule load. Reviewed-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'src/lg_driver.c')
-rw-r--r--src/lg_driver.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/lg_driver.c b/src/lg_driver.c
index 589d14e..c3fe142 100644
--- a/src/lg_driver.c
+++ b/src/lg_driver.c
@@ -165,8 +165,6 @@ static int LgLinePitches[4][11] = {
#define LG_MINOR_VERSION 0
#define LG_PATCHLEVEL 0
-static MODULESETUPPROTO(lgSetup);
-
static XF86ModuleVersionInfo lgVersRec =
{
"cirrus_laguna",
@@ -187,21 +185,10 @@ static XF86ModuleVersionInfo lgVersRec =
*/
_X_EXPORT XF86ModuleData cirrus_lagunaModuleData = {
&lgVersRec,
- lgSetup,
+ NULL,
NULL
};
-static pointer
-lgSetup(pointer module, pointer opts, int *errmaj, int *errmin)
-{
- static Bool setupDone = FALSE;
-
- if (!setupDone) {
- setupDone = TRUE;
- }
- return (pointer)1;
-}
-
#endif /* XFree86LOADER */
_X_EXPORT const OptionInfoRec *