Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Apr 2022 17:30:08 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 13bebcd35f0a - main - pcm: Initialize pcm_devclass in sound_modevent.
Message-ID:  <202204211730.23LHU8TB002760@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204211730.23LHU8TB002760>