svn commit: r266011 - head/sys/dev/sound/usb
Hans Petter Selasky
hselasky at FreeBSD.org
Wed May 14 11:26:00 UTC 2014
Author: hselasky
Date: Wed May 14 11:25:59 2014
New Revision: 266011
URL: http://svnweb.freebsd.org/changeset/base/266011
Log:
Make sure the USB audio driver is loaded last. This is important when
built as part of a kernel module to prevent panics when the USB audio
driver kernel module is unloaded.
Suggested by: marius @
MFC after: 1 week
Modified:
head/sys/dev/sound/usb/uaudio.c
Modified: head/sys/dev/sound/usb/uaudio.c
==============================================================================
--- head/sys/dev/sound/usb/uaudio.c Wed May 14 11:15:48 2014 (r266010)
+++ head/sys/dev/sound/usb/uaudio.c Wed May 14 11:25:59 2014 (r266011)
@@ -5917,7 +5917,7 @@ uaudio_hid_detach(struct uaudio_softc *s
usbd_transfer_unsetup(sc->sc_hid.xfer, UAUDIO_HID_N_TRANSFER);
}
-DRIVER_MODULE(uaudio, uhub, uaudio_driver, uaudio_devclass, NULL, 0);
+DRIVER_MODULE_ORDERED(uaudio, uhub, uaudio_driver, uaudio_devclass, NULL, 0, SI_ORDER_ANY);
MODULE_DEPEND(uaudio, usb, 1, 1, 1);
MODULE_DEPEND(uaudio, sound, SOUND_MINVER, SOUND_PREFVER, SOUND_MAXVER);
MODULE_VERSION(uaudio, 1);
More information about the svn-src-head
mailing list