Messages in this thread | | | Subject | Re: [PATCH] nvmem: mxs-ocotp: Use devm_add_action_or_reset() for cleanup | From | Srinivas Kandagatla <> | Date | Wed, 18 Mar 2020 13:41:43 +0000 |
| |
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@nxp.com> > --- > drivers/nvmem/mxs-ocotp.c | 30 +++++++++++------------------- > 1 file changed, 11 insertions(+), 19 deletions(-) >
Applied thanks,
srini
| |