Re: [PATCH RFC] c_can_pci: generic module for c_can on PCI

From: Federico Vaga
Date: Tue Jun 12 2012 - 10:49:40 EST



> > +out_free_clock:
> > + if (!priv->priv)
> > + clk_put(priv->priv);
>
> Why do you call clk_put on priv->priv, if priv->priv is NULL?

Right!

if(priv->priv)
clk_put(priv->priv);

--
Federico Vaga
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/