Commit f9cbbd25 authored by Bjorn Andersson's avatar Bjorn Andersson
Browse files

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: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent a0ff4aa6
......@@ -794,7 +794,7 @@ static void rproc_remove_subdevices(struct rproc *rproc)
{
struct rproc_subdev *subdev;
list_for_each_entry(subdev, &rproc->subdevs, node)
list_for_each_entry_reverse(subdev, &rproc->subdevs, node)
subdev->remove(subdev);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment