lkml.org 
[lkml]   [2014]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH V1] ASoC: fsl_ssi: refine ipg clock usage in this module
On Tue, Sep 09, 2014 at 08:17:51AM -0500, Timur Tabi wrote:
> Shengjiu Wang wrote:
> >+ if (ssi_private->soc->imx)
> >+ clk_prepare_enable(ssi_private->clk);

> How about this instead?

> if (ssi_private->clk)
> clk_prepare_enable(ssi_private->clk);

Should be a !IS_ERR() - NULL is a valid clock.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2014-09-09 18:01    [W:0.137 / U:0.996 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site