remoteproc: k3-dsp: Use devm_ti_sci_get_by_phandle() helper
authorAndrew Davis <afd@ti.com>
Mon, 5 Feb 2024 18:27:49 +0000 (12:27 -0600)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Mon, 5 Feb 2024 20:23:47 +0000 (13:23 -0700)
commit48f9a0858bfc502767206cca1d465b173cc0d650
treeb9253ac51e65a0ff296451bb8aea1de05294408a
parente160d811c5603f6205fd260cb6f5a4a22e84b80f
remoteproc: k3-dsp: Use devm_ti_sci_get_by_phandle() helper

Use the device lifecycle managed TI-SCI get() function. This helps prevent
mistakes like not put()'ing in the wrong order in cleanup functions and
forgetting to put() on error paths.

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