remoteproc: Stop subdevices in reverse order
authorBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 28 Aug 2017 05:31:42 +0000 (22:31 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 30 Aug 2017 23:29:55 +0000 (16:29 -0700)
commitf9cbbd256ccebc5911cb163f1cbb59fefd173d9a
treec07d366843b9ff02e58d2c8d90c83535b7d380ec
parenta0ff4aa6f010801b2a61c203c6e09d01b110fddf
remoteproc: Stop subdevices in reverse order

Subdevices might depend on earlier registered subdevices for
communication purposes, as such they should be stopped in reverse order
so that said communication channel is removed after the dependent
subdevice is stopped.

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