remoteproc: fix crashed parameter logic on stop call

Fix rproc_add_subdev parameter name and inverse the crashed logic.

Fixes: 880f5b3882 ("remoteproc: Pass type of shutdown to subdev remove")
Reviewed-by: Alex Elder <[email protected]>
Signed-off-by: Arnaud Pouliquen <[email protected]>
Signed-off-by: Bjorn Andersson <[email protected]>
This commit is contained in:
Arnaud Pouliquen 2018-04-10 10:57:25 +02:00 • committed by Bjorn Andersson
commit fcd58037f2
2 changed files with 3 additions and 3 deletions

View file

@ -1163,7 +1163,7 @@ int rproc_trigger_recovery(struct rproc *rproc)
if (ret)
return ret;
ret = rproc_stop(rproc, false);
ret = rproc_stop(rproc, true);
if (ret)
goto unlock_mutex;
@ -1316,7 +1316,7 @@ void rproc_shutdown(struct rproc *rproc)
if (!atomic_dec_and_test(&rproc->power))
goto out;
ret = rproc_stop(rproc, true);
ret = rproc_stop(rproc, false);
if (ret) {
atomic_inc(&rproc->power);
goto out;