[RFC, PATCH 3/3] clk: add warnings for incorrect enable/prepare semantics

Jeremy Kerr jeremy.kerr at canonical.com
Mon Feb 14 21:00:28 EST 2011


Hi Richard,

> >  void clk_unprepare(struct clk *clk)
> >  {
> > 
> > +	WARN_ON(clk->enable_count != 0);
> > +
> 
> Other drivers may be using the clock and increased the enable_count.
> This check may be moved to where we actually do unprepare.

Of course, thanks. Will update the series.


Jeremy



More information about the linux-arm-kernel mailing list