]> CyberLeo.Net >> Repos - FreeBSD/stable/9.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:47:20 +0000 (15:47 +0000)
committeravatar <avatar@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 14 Sep 2015 15:47:20 +0000 (15:47 +0000)
commitdf45e85d4c3df5a4fcb55459264c6267cdc7fea1
tree9a983e556ac4ffa49936474057b853320a03460b
parent4cdfc2aa6a901144e5122f6fc3508357f7c2ab99
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/9@287787 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/sound/midi/midi.c