summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2025-09-26 15:33:17 +0300
committerMathieu Poirier <mathieu.poirier@linaro.org>2025-10-14 18:11:39 +0300
commitb0106defc0ff673d6a29cbc858ea48b5f43ac7e7 (patch)
tree9ca8426a26c4643053ddec507a0e7039f588448f /tools/lib/python
parent6c5c37dc41633f3a42dd9e9d80f6e673cdd91165 (diff)
downloadlinux-b0106defc0ff673d6a29cbc858ea48b5f43ac7e7.tar.xz
remoteproc: imx_rproc: Use devm_add_action_or_reset() for mailbox cleanup
Convert imx_rproc_free_mbox() to a devm-managed cleanup action using devm_add_action_or_reset(). Ensure the mailbox resources are freed automatically with the device lifecycle, simplify error handling and removing the need for manual cleanup in probe and remove paths. Also improve error reporting by using dev_err_probe() for consistency and clarity. 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-3-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