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.

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to