Re: [PATCH] remoteproc: k3-dsp: Fix an error handling path in max77686_rtc_probe()

2024-09-06 Thread Andrew Davis
On 9/6/24 3:12 PM, Christophe JAILLET wrote: If an error occurs after the k3_dsp_rproc_request_mbox() call, mbox_free_channel() must be called, as already done in the remove function. Instead of adding an error handling path in the probe and changing all error handling in the function, add a new

[PATCH] remoteproc: k3-dsp: Fix an error handling path in max77686_rtc_probe()

2024-09-06 Thread Christophe JAILLET
If an error occurs after the k3_dsp_rproc_request_mbox() call, mbox_free_channel() must be called, as already done in the remove function. Instead of adding an error handling path in the probe and changing all error handling in the function, add a new devm_add_action_or_reset() and simplify the .r