diff options
| -rw-r--r-- | drivers/remoteproc/remoteproc_core.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c index 283b258f5e0f..38a5e98d7dd7 100644 --- a/drivers/remoteproc/remoteproc_core.c +++ b/drivers/remoteproc/remoteproc_core.c | |||
| @@ -940,7 +940,7 @@ static int rproc_start(struct rproc *rproc, const struct firmware *fw) | |||
| 940 | if (ret) { | 940 | if (ret) { |
| 941 | dev_err(dev, "failed to prepare subdevices for %s: %d\n", | 941 | dev_err(dev, "failed to prepare subdevices for %s: %d\n", |
| 942 | rproc->name, ret); | 942 | rproc->name, ret); |
| 943 | return ret; | 943 | goto reset_table_ptr; |
| 944 | } | 944 | } |
| 945 | 945 | ||
| 946 | /* power up the remote processor */ | 946 | /* power up the remote processor */ |
| @@ -966,9 +966,10 @@ static int rproc_start(struct rproc *rproc, const struct firmware *fw) | |||
| 966 | 966 | ||
| 967 | stop_rproc: | 967 | stop_rproc: |
| 968 | rproc->ops->stop(rproc); | 968 | rproc->ops->stop(rproc); |
| 969 | |||
| 970 | unprepare_subdevices: | 969 | unprepare_subdevices: |
| 971 | rproc_unprepare_subdevices(rproc); | 970 | rproc_unprepare_subdevices(rproc); |
| 971 | reset_table_ptr: | ||
| 972 | rproc->table_ptr = rproc->cached_table; | ||
| 972 | 973 | ||
| 973 | return ret; | 974 | return ret; |
| 974 | } | 975 | } |
