]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r286887: Using the error return code documented in the comment.
authoravatar <avatar@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 14 Sep 2015 15:44:03 +0000 (15:44 +0000)
committeravatar <avatar@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 14 Sep 2015 15:44:03 +0000 (15:44 +0000)
commitd9b6c6c71b24ce2709475682ca7d6e1ee80a915e
tree46f125deb9baa60e70daf01e27d3202e549e35fa
parent23caff132747e2ef35650d3c7f288aae8a644631
MFC r286887: Using the error return code documented in the comment.

Though there is no direct midi_uninit() caller amongst existing drivers
at this moment, a quick experiment indicates that EBUSY gives users more
precise error message once drivers start to honour this result.  For example,
emu_midi_detach() should check the result of mpu401_uninit() and block
module unloading if there is any MIDI I/O in progress.

git-svn-id: svn://svn.freebsd.org/base/stable/8@287786 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/sound/midi/midi.c