]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
remoteproc: imx_rproc: Use devm_add_action_or_reset() for workqueue cleanup
authorPeng Fan <peng.fan@nxp.com>
Fri, 26 Sep 2025 12:33:16 +0000 (20:33 +0800)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 14 Oct 2025 15:09:40 +0000 (09:09 -0600)
commit6c5c37dc41633f3a42dd9e9d80f6e673cdd91165
tree5b9ba339400c22c4ce0b5718ddbaf839b7b440a4
parent80405a34e1f8975cdb2d7d8679bca7f768861035
remoteproc: imx_rproc: Use devm_add_action_or_reset() for workqueue cleanup

Replace manual destroy_workqueue() calls in error and remove paths with a
devm_add_action_or_reset() helper. Ensure the workqueue is properly
cleaned up with the device lifecycle, and simplify error handling in probe
by removing now-unnecessary labels and cleanup steps.

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-2-4c0ec279cc5f@nxp.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/imx_rproc.c