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

From: Jeremy Kerr
Date: Mon Feb 14 2011 - 21:00:49 EST


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
--
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/