summaryrefslogtreecommitdiff
path: root/x11-drivers/xlibre-xf86-video-mga/files/patch-src_mga__driver.c
blob: 7f54cb869b320e9e237d5c0fd8268fca10014629 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- src/mga_driver.c.orig	2024-08-01 13:23:52 UTC
+++ src/mga_driver.c
@@ -702,6 +702,8 @@ MGAPciProbe(DriverPtr drv, int entity_num, struct pci_
     ScrnInfoPtr pScrn = NULL;
     MGAPtr pMga;
 
+#ifndef __FreeBSD__
+    /* FreeBSD always has vgapci driver attached.  */
     if (pci_device_has_kernel_driver(dev)) {
 	/* If it's a G200 server chip, it's probably on KMS, so bail; if not,
 	 * it might be using matroxfb, which is ok. */
@@ -721,6 +723,7 @@ MGAPciProbe(DriverPtr drv, int entity_num, struct pci_
 	        return FALSE;
 	}
     }
+#endif
 
     /* Allocate a ScrnInfoRec and claim the slot */
     pScrn = xf86ConfigPciEntity(pScrn, 0, entity_num, MGAPciChipsets,