sysutils/mbgtools: Remove devclass from DRIVER_MODULE on recent main.
Differential Revision: https://reviews.freebsd.org/D35950
This commit is contained in:
parent
2d110721bf
commit
3796767511
1 changed files with 15 additions and 0 deletions
15
sysutils/mbgtools/files/patch-mbgclock_mbgclock__main.c
Normal file
15
sysutils/mbgtools/files/patch-mbgclock_mbgclock__main.c
Normal 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
|
Loading…
Reference in a new issue