remoteproc: Correct resource handling upon boot failure
authorBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 3 Oct 2016 00:41:29 +0000 (17:41 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 3 Oct 2016 05:50:21 +0000 (22:50 -0700)
commit229b85a6a54d7eef81ba307d60a589cc232f06d1
treec0e28b3a8f7a65a3d67500f07b0948297a57a20a
parenteeac0a878829e15b86429b164244ac18a740633d
remoteproc: Correct resource handling upon boot failure

The freeing of resources will attempt to clear values previously set in
the cached resource table, so make sure to free the table after we have
cleaned up the resources.

Fixes: 988d204cdaf6 ("remoteproc: Move handling of cached table to boot/shutdown")
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_core.c