agp: Set the driver-specific field correctly

PR:		281035
Reviewed by:	mhorne
MFC after:	1 week
Fixes:		437ea82ce7 ("agp: Handle multiple devices more gracefully")

(cherry picked from commit 12500c14281dc62ddeac4c5e1e6eabd1e380f11c)
This commit is contained in:
Mark Johnston 2024-08-29 13:12:19 +00:00
parent f3e22a08ca
commit 57e0d4b9a6

View file

@ -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);