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:
parent
6e5bffcde1
commit
29ca44b9b5
@ -1,6 +1,6 @@
|
||||
PORTNAME= xf86-video-ast
|
||||
PORTVERSION= 1.1.5
|
||||
PORTREVISION= 5
|
||||
PORTREVISION= 6
|
||||
CATEGORIES= x11-drivers
|
||||
|
||||
MAINTAINER= x11@FreeBSD.org
|
||||
|
19
x11-drivers/xf86-video-ast/files/patch-src_ast__driver.c
Normal file
19
x11-drivers/xf86-video-ast/files/patch-src_ast__driver.c
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user