Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x11/nvidia-driver: Remove devclass from DRIVER_MODULE on recent main.
Initialize nvidia_devclass in nvidia_modevent instead. Reviewed by: danfe Differential Revision: https://reviews.freebsd.org/D35266
- Loading branch information
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- src/%%NVSRC%%/nvidia_subr.c.orig 2022-03-16 11:18:11 UTC | ||
+++ src/%%NVSRC%%/nvidia_subr.c | ||
@@ -727,6 +727,9 @@ int nvidia_modevent( | ||
* time. | ||
*/ | ||
sc = &nvidia_ctl_sc; | ||
+#if __FreeBSD_version >= 1400058 | ||
+ nvidia_devclass = devclass_create("nvidia"); | ||
+#endif | ||
|
||
nvidia_stack_t_zone = uma_zcreate("nvidia_stack_t", sizeof(nvidia_stack_t), | ||
NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0); |