lkml.org 
[lkml]   [2016]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 3/3] nvmem: imx-ocotp: handling clock
From
Hi Peng,

On Tue, Apr 19, 2016 at 5:33 AM, Peng Fan <van.freenix@gmail.com> wrote:

> @@ -46,11 +48,15 @@ static int imx_ocotp_read(void *context, const void *reg, size_t reg_size,
> if (count > (priv->nregs - index))
> count = priv->nregs - index;
>
> + clk_prepare_enable(priv->clk);

clk_prepare_enable() may fail, so you should better check its return
value and propagate it in the case of error.

\
 
 \ /
  Last update: 2016-04-19 13:01    [W:0.073 / U:6.496 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site