]> git.hungrycats.org Git - linux/commit
remoteproc: k3-r5: Use devm_rproc_alloc() helper
authorBeleswar Padhi <b-padhi@ti.com>
Thu, 8 Aug 2024 07:41:25 +0000 (13:11 +0530)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Fri, 16 Aug 2024 14:41:14 +0000 (08:41 -0600)
commitc81ef0cb576a3995edf24b63e9639881f19a2122
treef2d9625766ddd3b670adf6fb60b357136055c190
parent9091225ba28c0106d3cd041c7abf5551a94bb524
remoteproc: k3-r5: 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: Beleswar Padhi <b-padhi@ti.com>
Reviewed-by: Andrew Davis <afd@ti.com>
Link: https://lore.kernel.org/r/20240808074127.2688131-2-b-padhi@ti.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/ti_k3_r5_remoteproc.c