git: 563c2f27e0ff - main - sound: Remove stale midi module dependencies

From: Christos Margiolis <christos_at_FreeBSD.org>
Date: Mon, 16 Nov 2026 11:35:32 UTC
The branch main has been updated by christos:

URL: https://cgit.FreeBSD.org/src/commit/?id=563c2f27e0ffec96a0ddd77b68c7ca6614d704af

commit 563c2f27e0ffec96a0ddd77b68c7ca6614d704af
Author:     Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2026-11-16 11:32:22 +0000
Commit:     Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2026-11-16 11:34:36 +0000

    sound: Remove stale midi module dependencies
    
    midi(4) stopped being a module in 45bb10e0ed5a ("sound: Stop building
    midi as a module"), so snd_cmi(4) and snd_emu10k1(4) fail to load
    because they still depend on it.
    
    Fixes:          45bb10e0ed5a ("sound: Stop building midi as a module")
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 day
---
 sys/dev/sound/pci/cmi.c     | 1 -
 sys/dev/sound/pci/emu10k1.c | 1 -
 2 files changed, 2 deletions(-)

diff --git a/sys/dev/sound/pci/cmi.c b/sys/dev/sound/pci/cmi.c
index ace52d727c6a..69d218c97ca4 100644
--- a/sys/dev/sound/pci/cmi.c
+++ b/sys/dev/sound/pci/cmi.c
@@ -1107,5 +1107,4 @@ static driver_t cmi_driver = {
 
 DRIVER_MODULE(snd_cmi, pci, cmi_driver, 0, 0);
 MODULE_DEPEND(snd_cmi, sound, 1, 1, 1);
-MODULE_DEPEND(snd_cmi, midi, 1,1,1);
 MODULE_VERSION(snd_cmi, 1);
diff --git a/sys/dev/sound/pci/emu10k1.c b/sys/dev/sound/pci/emu10k1.c
index bc96fcc8b6a9..76affc97ca5e 100644
--- a/sys/dev/sound/pci/emu10k1.c
+++ b/sys/dev/sound/pci/emu10k1.c
@@ -2196,7 +2196,6 @@ static driver_t emu_driver = {
 DRIVER_MODULE(snd_emu10k1, pci, emu_driver, NULL, NULL);
 MODULE_DEPEND(snd_emu10k1, sound, 1, 1, 1);
 MODULE_VERSION(snd_emu10k1, 1);
-MODULE_DEPEND(snd_emu10k1, midi, 1, 1, 1);
 
 /* dummy driver to silence the joystick device */
 static int