Index: sysutils/rtsx-kmod/files/patch-rtsx.c =================================================================== --- /dev/null +++ sysutils/rtsx-kmod/files/patch-rtsx.c @@ -0,0 +1,19 @@ +--- rtsx.c.orig 2022-05-11 20:39:41 UTC ++++ rtsx.c +@@ -4027,10 +4027,15 @@ static device_method_t rtsx_methods[] = { + DEVMETHOD_END + }; + ++DEFINE_CLASS_0(rtsx, rtsx_driver, rtsx_methods, sizeof(struct rtsx_softc)); ++ ++#if __FreeBSD_version < 1400058 + 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); ++#else ++DRIVER_MODULE(rtsx, pci, rtsx_driver, NULL, NULL); ++#endif + #ifndef MMCCAM + MMC_DECLARE_BRIDGE(rtsx); + #endif /* MMCCAM */