summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2013-05-13 13:55:51 +1000
committerDave Airlie <airlied@redhat.com>2013-05-13 13:55:51 +1000
commitc18439f759bec267a3b67d375dcbfeb8a6fd7b6a (patch)
tree9d8b6e4fe6513b01b9254c6cb32e66133ceba8e0
parentd3b52efe959f255784f5ead16d7276ca0fb4cdb1 (diff)
nouveau: clean up nv entity index declarations.
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--src/nv_driver.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/nv_driver.c b/src/nv_driver.c
index 470f70d..8a112db 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -81,6 +81,12 @@ static Bool NVPlatformProbe(DriverPtr driver,
#endif
_X_EXPORT int NVEntityIndex = -1;
+
+static int getNVEntityIndex(void)
+{
+ return NVEntityIndex;
+}
+
/*
* This contains the functions needed by the server after loading the
* driver module. It must be supplied, and gets added the driver list by
@@ -695,13 +701,6 @@ nouveau_setup_capabilities(ScrnInfoPtr pScrn)
#endif
}
-extern _X_EXPORT int NVEntityIndex;
-
-static int getNVEntityIndex(void)
-{
- return NVEntityIndex;
-}
-
NVEntPtr NVEntPriv(ScrnInfoPtr pScrn)
{
DevUnion *pPriv;