1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

x11-drivers/xf86-video-ast: Fix pci access after df10dcefa4

Sponsored by:	Beckhoff Automation GmbH & Co. KG
PR:		270509
This commit is contained in:
Emmanuel Vadot 2024-08-01 15:32:52 +02:00
parent 6e5bffcde1
commit 29ca44b9b5
2 changed files with 20 additions and 1 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= xf86-video-ast
PORTVERSION= 1.1.5
PORTREVISION= 5
PORTREVISION= 6
CATEGORIES= x11-drivers
MAINTAINER= x11@FreeBSD.org

View File

@ -0,0 +1,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