summaryrefslogtreecommitdiff
path: root/x11-drivers/xlibre-xf86-video-ast/files/patch-src_ast__driver.c
blob: 172e8a4ed7a31f891076e86276d12981731438b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- src/ast_driver.c.orig	2024-08-01 13:20:24 UTC
+++ src/ast_driver.c
@@ -273,6 +273,8 @@ ASTProbe(DriverPtr drv, int flags)
 
 #ifdef XSERVER_LIBPCIACCESS
             {
+#ifndef __FreeBSD__
+		/* FreeBSD always has vgapci driver attached.  */
                 struct pci_device *pPci = xf86GetPciInfoForEntity(usedChips[i]);
 
                 if (pci_device_has_kernel_driver(pPci)) {
@@ -289,6 +291,7 @@ ASTProbe(DriverPtr drv, int flags)
                     free(devSections);
                     return FALSE;
                 }
+#endif
             }
 #endif