Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 May 2014 11:25:59 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r266011 - head/sys/dev/sound/usb
Message-ID:  <201405141125.s4EBPxIG083099@svn.freebsd.org>

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



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