Index: sysutils/rtsx-kmod/files/patch-rtsx.c =================================================================== --- /dev/null +++ sysutils/rtsx-kmod/files/patch-rtsx.c @@ -0,0 +1,18 @@ +--- rtsx.c.orig 2022-03-18 14:52:03 UTC ++++ rtsx.c +@@ -4027,10 +4027,14 @@ static device_method_t rtsx_methods[] = { + DEVMETHOD_END + }; + ++DEFINE_CLASS_0(rtsx, rtsx_driver, rtsx_methods, sizeof(struct rtsx_softc)); ++#if __FreeBSD_version >= 1400058 ++DRIVER_MODULE(rtsx, pci, rtsx_driver, NULL, NULL); ++#else + static devclass_t rtsx_devclass; + +-DEFINE_CLASS_0(rtsx, rtsx_driver, rtsx_methods, sizeof(struct rtsx_softc)); + DRIVER_MODULE(rtsx, pci, rtsx_driver, rtsx_devclass, NULL, NULL); ++#endif + #ifndef MMCCAM + MMC_DECLARE_BRIDGE(rtsx); + #endif /* MMCCAM */