remoteproc: imx_dsp_rproc: Use devm_rproc_alloc() helper
authorAndrew Davis <afd@ti.com>
Tue, 23 Jan 2024 18:46:24 +0000 (12:46 -0600)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Fri, 2 Feb 2024 18:30:22 +0000 (11:30 -0700)
commit8f12de7913af990230d0a97f996a4e51f05fea9b
tree7be5166acb14848ff536c4c323f0549c94590c1d
parent92a0915ac3eb571fc014c249c66db802be7fdac9
remoteproc: imx_dsp_rproc: Use devm_rproc_alloc() helper

Use the device lifecycle managed allocation function. This helps prevent
mistakes like freeing out of order in cleanup functions and forgetting to
free on error paths.

Signed-off-by: Andrew Davis <afd@ti.com>
Link: https://lore.kernel.org/r/20240123184632.725054-1-afd@ti.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/imx_dsp_rproc.c