git: 13bebcd35f0a - main - pcm: Initialize pcm_devclass in sound_modevent.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 21 Apr 2022 17:30:08 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=13bebcd35f0a19c7c96e11fb336c99ead7f1fe92 commit 13bebcd35f0a19c7c96e11fb336c99ead7f1fe92 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-21 17:29:14 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-21 17:29:14 +0000 pcm: Initialize pcm_devclass in sound_modevent. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D34998 --- sys/dev/sound/pcm/sound.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c index b94ed8e943bb..ffb6db66a179 100644 --- a/sys/dev/sound/pcm/sound.c +++ b/sys/dev/sound/pcm/sound.c @@ -1429,6 +1429,7 @@ sound_modevent(module_t mod, int type, void *data) ret = 0; switch (type) { case MOD_LOAD: + pcm_devclass = devclass_create("pcm"); pcmsg_unrhdr = new_unrhdr(1, INT_MAX, NULL); break; case MOD_UNLOAD: