lkml.org 
[lkml]   [2020]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] nvmem: mxs-ocotp: Use devm_add_action_or_reset() for cleanup
From
Date


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

\
 
 \ /
  Last update: 2020-03-18 14:42    [W:0.047 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site