]> www.infradead.org Git - users/jedix/linux-maple.git/commit
remoteproc: omap: Use devm_rproc_alloc() helper
authorAndrew Davis <afd@ti.com>
Mon, 10 Jun 2024 15:17:16 +0000 (10:17 -0500)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Thu, 13 Jun 2024 16:05:11 +0000 (10:05 -0600)
commit6159855954ba16a8b3f6a01c305f938ea7e88f11
treecb64d9946f48d9303e1418715bca38eaf5e75df3
parent2fa26ca8b786888673689ccc9da6094150939982
remoteproc: omap: 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/20240610151721.189472-1-afd@ti.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/omap_remoteproc.c