diff options
| author | Peng Fan <peng.fan@nxp.com> | 2025-09-26 15:33:18 +0300 |
|---|---|---|
| committer | Mathieu Poirier <mathieu.poirier@linaro.org> | 2025-10-14 18:12:29 +0300 |
| commit | 65af722aa86fc58431670b3d95be9e1d9a0b060f (patch) | |
| tree | 95b244ee3fd456e022ce9422d7bef2fe837392e9 /tools/lib/python | |
| parent | b0106defc0ff673d6a29cbc858ea48b5f43ac7e7 (diff) | |
| download | linux-65af722aa86fc58431670b3d95be9e1d9a0b060f.tar.xz | |
remoteproc: imx_rproc: Use devm_clk_get_enabled() and simplify cleanup
Replace separate calls to devm_clk_get() and clk_prepare_enable() with
devm_clk_get_enabled(), which combines clock acquisition and enabling
into a single managed step. Simplify the probe logic and remove the need
for manual clock disable in error and remove paths.
Also, update error handling to eliminate redundant cleanup steps and use
return-based error propagation where appropriate. Improve code clarity and
reduce the chance of resource leaks or incorrect ordering in cleanup paths.
No functional changes.
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/20250926-imx_rproc_v3-v3-4-4c0ec279cc5f@nxp.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
