sysutils/mbgtools: Remove devclass from DRIVER_MODULE on recent main.

Differential Revision:	https://reviews.freebsd.org/D35950
This commit is contained in:
John Baldwin 2022-08-22 11:14:12 -07:00
parent 2d110721bf
commit 3796767511

View file

@ -0,0 +1,15 @@
--- mbgclock/mbgclock_main.c.orig 2022-07-26 17:02:15 UTC
+++ mbgclock/mbgclock_main.c
@@ -585,7 +585,11 @@ static device_method_t mbgclock_methods[] =
+DEFINE_CLASS_0( mbgclock, mbgclock_driver, mbgclock_methods, sizeof( struct mbgclock_softc ) );
+#if __FreeBSD_version >= 1400058
+DRIVER_MODULE( mbgclock, pci, mbgclock_driver, 0, 0 );
+#else
static devclass_t mbgclock_devclass;
-DEFINE_CLASS_0( mbgclock, mbgclock_driver, mbgclock_methods, sizeof( struct mbgclock_softc ) );
DRIVER_MODULE( mbgclock, pci, mbgclock_driver, mbgclock_devclass, 0, 0 );
+#endif