git: 12500c14281d - main - agp: Set the driver-specific field correctly

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Thu, 29 Aug 2024 13:51:10 UTC
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=12500c14281dc62ddeac4c5e1e6eabd1e380f11c

commit 12500c14281dc62ddeac4c5e1e6eabd1e380f11c
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-08-29 13:12:19 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-08-29 13:12:19 +0000

    agp: Set the driver-specific field correctly
    
    PR:             281035
    Reviewed by:    mhorne
    MFC after:      1 week
    Fixes:          437ea82ce7fc ("agp: Handle multiple devices more gracefully")
---
 sys/dev/agp/agp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/agp/agp.c b/sys/dev/agp/agp.c
index f7eb906fc57c..8db1e13f08de 100644
--- a/sys/dev/agp/agp.c
+++ b/sys/dev/agp/agp.c
@@ -254,7 +254,7 @@ agp_generic_attach(device_t dev)
 	mdargs.mda_uid = UID_ROOT;
 	mdargs.mda_gid = GID_WHEEL;
 	mdargs.mda_mode = 0600;
-	mdargs.mda_si_drv1 = sc;
+	mdargs.mda_si_drv1 = dev;
 	mdargs.mda_si_drv2 = NULL;
 
 	unit = device_get_unit(dev);