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

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Mon, 22 Aug 2022 18:15:27 UTC
The branch main has been updated by jhb (doc, src committer):

URL: https://cgit.FreeBSD.org/ports/commit/?id=37967675112795c7ac25659c2e540dbeb18df3eb

commit 37967675112795c7ac25659c2e540dbeb18df3eb
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-08-22 18:14:12 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-08-22 18:14:12 +0000

    sysutils/mbgtools: Remove devclass from DRIVER_MODULE on recent main.
    
    Differential Revision:  https://reviews.freebsd.org/D35950
---
 sysutils/mbgtools/files/patch-mbgclock_mbgclock__main.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/sysutils/mbgtools/files/patch-mbgclock_mbgclock__main.c b/sysutils/mbgtools/files/patch-mbgclock_mbgclock__main.c
new file mode 100644
index 000000000000..4383bff6cd38
--- /dev/null
+++ b/sysutils/mbgtools/files/patch-mbgclock_mbgclock__main.c
@@ -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