Re: [PATCH] nvmem: mxs-ocotp: Use devm_add_action_or_reset() for cleanup

From: Srinivas Kandagatla
Date: Wed Mar 18 2020 - 09:41:49 EST




On 14/03/2020 07:11, Anson Huang wrote:
Use devm_add_action_or_reset() for cleanup to call clk_unprepare(),
which can simplify the error handling in .probe, and .remove callback
can be dropped.

Signed-off-by: Anson Huang <Anson.Huang@xxxxxxx>
---
drivers/nvmem/mxs-ocotp.c | 30 +++++++++++-------------------
1 file changed, 11 insertions(+), 19 deletions(-)


Applied thanks,

srini