diff options
Diffstat (limited to 'src/nv_driver.c')
-rw-r--r-- | src/nv_driver.c | 8 |
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); |