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>
This commit is contained in:
Bjorn Andersson 2017-08-27 22:31:42 -07:00
Родитель a0ff4aa6f0
Коммит f9cbbd256c
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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);
}