From ca3f59fa84a56f6e225a87b5e7880f52834c7692 Mon Sep 17 00:00:00 2001 From: b-aaz <85005689+b-aaz@users.noreply.github.com> Date: Sat, 28 Jun 2025 21:15:09 +0000 Subject: [PATCH] FreeBSD: nv_driver: Disable check for pci driver in FreeBSD. Seems like this check is also unnecessary in FreeBSD as in NetBSD. Because the vgapci driver is always attached. Signed-off-by: b-aaz --- src/nv_driver.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nv_driver.c b/src/nv_driver.c index ae94649..7400b26 100644 --- a/src/nv_driver.c +++ b/src/nv_driver.c @@ -37,8 +37,10 @@ * nv will refuse to work whenever there's a driver other than vga attached to * the device we're trying to probe, yet nv works fine on top of gffb or * genfb on NetBSD + * + * FreeBSD always has vgapci driver attached. */ -#ifndef __NetBSD__ +#if !defined (__NetBSD__) && !defined (__FreeBSD__) #define NV_TEST_FOR_KERNEL_DRIVER 1 #endif