Searched hist:"226 f5db4212438cdfe1a94652d74c6c01788a837" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/remoteproc/ |
H A D | remoteproc_core.c | diff 226f5db4212438cdfe1a94652d74c6c01788a837 Mon Apr 20 18:16:01 CDT 2020 Mathieu Poirier <mathieu.poirier@linaro.org> remoteproc: Get rid of tedious error path
Get rid of tedious error management by moving firmware and operation allocation after calling device_initialize(). That way we take advantage of the automatic call to rproc_type_release() to cleanup after ourselves when put_device() is called.
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Reviewed-by: Alex Elder <elder@linaro.org> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Acked-by: Suman Anna <s-anna@ti.com> Link: https://lore.kernel.org/r/20200420231601.16781-5-mathieu.poirier@linaro.org Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
|