agp: Set the driver-specific field correctly

PR:		281035
Reviewed by:	mhorne
MFC after:	1 week
Fixes:		437ea82ce7 ("agp: Handle multiple devices more gracefully")
This commit is contained in:
Mark Johnston 2024-08-29 13:12:19 +00:00
parent 0c605af3f9
commit 12500c1428

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