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

Kevin Wells kevin.wells at nxp.com
Fri Mar 18 13:15:26 EDT 2011



> 
> On Fri, Mar 18, 2011 at 04:11:51PM +0100, Ithamar R. Adema wrote:
> > +	clk = clk_get(NULL, "timer1");
> > +	BUG_ON(IS_ERR(clk));

I didn't see a specific enable for timer0, it seems to work for me
because my boot loader leaves it on when booting the kernel, but
maybe it's also needed.


> > +
> > +	clk_enable(clk);
> > +	rate = clk_get_rate(clk);
> > +	clk_put(clk);
> 
> Don't put a clock that you continue to use.
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel



More information about the linux-arm-kernel mailing list