remoteproc: Refactor rproc module locking
authorBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 3 Oct 2016 00:46:39 +0000 (17:46 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 3 Oct 2016 05:50:22 +0000 (22:50 -0700)
commitfbb6aacb078285f88e4a4a20399c6af8d61e0000
treebdec6ae8cb1d4d1c786c84335df7bb8760494dc8
parent433c0e04bc06da6d049c691a9ef238d61edb841c
remoteproc: Refactor rproc module locking

Lock the implementation as we hand out references to client drivers
rather than when they try to boot the remote processor. This allows
auto-booting remote processors to be shut down by unloading their
module, in addition to first unbinding them.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_core.c