[PATCH v2 4/9] lpc2k: generic time and clockevents

Ithamar R. Adema ithamar.adema at team-embedded.nl
Fri Mar 18 11:44:25 EDT 2011


On Fri, 2011-03-18 at 15:20 +0000, Russell King - ARM Linux wrote:
> On Fri, Mar 18, 2011 at 04:11:51PM +0100, Ithamar R. Adema wrote:
> > +	clk = clk_get(NULL, "timer1");
> > +	BUG_ON(IS_ERR(clk));
> > +
> > +	clk_enable(clk);
> > +	rate = clk_get_rate(clk);
> > +	clk_put(clk);
> 
> Don't put a clock that you continue to use.

Ok, will remove the clk_put() here then.

Regards,

Ithamar.





More information about the linux-arm-kernel mailing list