Imported Debian patch 2:1.15.1-0ubuntu2.6
[deb_xorg-server.git] / debian / patches / no-nv.patch
CommitLineData
7217e0ca
ML
1commit b770266fa9c3fab5374bdf109676e0b129ac4546
2Author: Bryce Harrington <bryce@canonical.com>
3Date: Wed Apr 3 13:36:20 2013 -0700
4
5 Don't bother probing -nv on linux.
6
7 For linux this driver is long obsolete now. It may have some relevance
8 on non-linux systems.
9
10diff --git a/hw/xfree86/common/xf86pciBus.c b/hw/xfree86/common/xf86pciBus.c
11index b2545be..73a662d 100644
12--- a/hw/xfree86/common/xf86pciBus.c
13+++ b/hw/xfree86/common/xf86pciBus.c
14@@ -1220,8 +1220,9 @@ xf86VideoPtrToDriverList(struct pci_device *dev,
15 driverList[idx++] = "nvidia";
16 #ifdef __linux__
17 driverList[idx++] = "nouveau";
18-#endif
19+#else
20 driverList[idx++] = "nv";
21+#endif
22 break;
23 }
24 case 0x1106: