summaryrefslogtreecommitdiff
path: root/src/nv_driver.c
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2007-09-21 15:08:46 -0700
committerAaron Plattner <aplattner@nvidia.com>2007-09-21 15:24:23 -0700
commitfee39378ee291a715c607b8600c5380dfa80d97e (patch)
treec9202b827b1f5f18009096dd0e149eee8632d93d /src/nv_driver.c
parent5ca45e600dcea17dba7cf078de49aef3821ea687 (diff)
Fix stupid, stupid typos reported by Alan Coopersmith.
Thanks!
Diffstat (limited to 'src/nv_driver.c')
-rw-r--r--src/nv_driver.c8
1 files changed, 4 insertions, 4 deletions
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, struct pci_device *dev, intptr_t data)
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);