xf86-video-nv: configure.ac src/nv_driver.c

Aaron Plattner aplattner at kemper.freedesktop.org
Fri Sep 21 15:56:28 PDT 2007


 configure.ac    |    2 +-
 src/nv_driver.c |    8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

New commits:
diff-tree fee39378ee291a715c607b8600c5380dfa80d97e (from 5ca45e600dcea17dba7cf078de49aef3821ea687)
Author: Aaron Plattner <aplattner at nvidia.com>
Date:   Fri Sep 21 15:08:46 2007 -0700

    Fix stupid, stupid typos reported by Alan Coopersmith.
    
    Thanks!

diff --git a/configure.ac b/configure.ac
index 6b90720..9b47291 100644
--- a/configure.ac
+++ b/configure.ac
@@ -79,7 +79,7 @@ AC_CHECK_DECL(XSERVER_LIBPCIACCESS,
               [XSERVER_LIBPCIACCESS=yes],[XSERVER_LIBPCIACCESS=no],
               [#include "xorg-server.h"])
 if test "x$XSERVER_LIBPCIACCESS" = "xyes"; then
-    PKG_CHECK_MODULES(PCIACCES, [pciaccess >= 0.8.0])
+    PKG_CHECK_MODULES(PCIACCESS, [pciaccess >= 0.8.0])
 fi
 
 CFLAGS="$save_CFLAGS"
diff --git a/src/nv_driver.c b/src/nv_driver.c
index 69d61d2..5141570 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -98,10 +98,10 @@ _X_EXPORT DriverRec NV = {
         NV_VERSION,
 	NV_DRIVER_NAME,
         NVIdentify,
-#if XSERVER_PCIACCESS
-        NVProbe,
-#else
+#if XSERVER_LIBPCIACCESS
         NULL,
+#else
+        NVProbe,
 #endif
 	NVAvailableOptions,
         NULL,
@@ -822,7 +822,7 @@ NVPciProbe(DriverPtr drv, int entity, st
                NV_NAME ": Found NVIDIA %s at %2.2x@%2.2x:%2.2x:%1.1x\n",
                name, dev->bus, dev->domain, dev->dev, dev->func);
 
-    if(NVIsG80(dev->device_id))
+    if(NVIsG80(id))
         return G80GetScrnInfoRec(NULL, entity);
     else if(dev->vendor_id == PCI_VENDOR_NVIDIA_SGS)
         return RivaGetScrnInfoRec(NULL, entity);


More information about the xorg-commit mailing list