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

Russell King - ARM Linux linux at arm.linux.org.uk
Fri Mar 18 11:20:12 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));
> +
> +	clk_enable(clk);
> +	rate = clk_get_rate(clk);
> +	clk_put(clk);

Don't put a clock that you continue to use.



More information about the linux-arm-kernel mailing list