Lines 1-6
Link Here
|
1 |
--- src/nv_driver.c.orig 2017-01-17 22:41:33 UTC |
1 |
--- src/nv_driver.c.orig 2017-01-17 22:41:33 UTC |
2 |
+++ src/nv_driver.c |
2 |
+++ src/nv_driver.c |
3 |
@@ -1543,7 +1543,11 @@ NVPreInit(ScrnInfoPtr pScrn, int flags) |
3 |
@@ -911,6 +911,8 @@ NVPciProbe(DriverPtr drv, int entity, struct pci_devic |
|
|
4 |
NVGetPCIXpressChip(dev) : dev->vendor_id << 16 | dev->device_id; |
5 |
const char *name = xf86TokenToString(NVKnownChipsets, id); |
6 |
|
7 |
+#ifndef __FreeBSD__ |
8 |
+ /* FreeBSD always has vgapci driver attached. */ |
9 |
if (pci_device_has_kernel_driver(dev)) { |
10 |
xf86DrvMsg(0, X_ERROR, |
11 |
NV_NAME ": The PCI device 0x%x (%s) at %2.2d@%2.2d:%2.2d:%1.1d has a kernel module claiming it.\n", |
12 |
@@ -919,6 +921,7 @@ NVPciProbe(DriverPtr drv, int entity, struct pci_devic |
13 |
NV_NAME ": This driver cannot operate until it has been unloaded.\n"); |
14 |
return FALSE; |
15 |
} |
16 |
+#endif |
17 |
|
18 |
if(dev->vendor_id == PCI_VENDOR_NVIDIA && !name && |
19 |
!NVIsSupported(id) && !NVIsG80(id)) { |
20 |
@@ -1543,7 +1546,11 @@ NVPreInit(ScrnInfoPtr pScrn, int flags) |
4 |
xf86FreeInt10(pNv->pInt); |
21 |
xf86FreeInt10(pNv->pInt); |
5 |
return FALSE; |
22 |
return FALSE; |
6 |
} |
23 |
} |