remoteproc: st: Use devm_rproc_alloc() helper
authorAndrew Davis <afd@ti.com>
Tue, 23 Jan 2024 18:46:31 +0000 (12:46 -0600)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Fri, 2 Feb 2024 18:36:27 +0000 (11:36 -0700)
commit173d2c6326e39a9d87cadab179e2177a1d76294e
treeb43aaacce260047d454e571eb68afd6412430718
parentf1e05cc10a3e129c669c169b88fb935e7d3c64ec
remoteproc: st: 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-8-afd@ti.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/st_remoteproc.c