Mike Turquette d043d87cd3 ARM: OMAP2+: clockdomain: bypass clockdomain handling when disabling unused clks
The OMAP port to the common clk framework[1] resulted in spurious WARNs
while disable unused clocks.  This is due to _clkdm_clk_hwmod_disable
catching clkdm->usecount's with a value of zero.  Even less desirable it
would not allow the clkdm_clk_disable function pointer to get called due
to an early return of -ERANGE.

This patch adds a check for such a corner case by skipping the WARN and
early return in the event that clkdm->usecount and clk->enable_usecount
are both zero.  Presumably this could only happen during the check for
unused clocks at boot-time.

[1] http://article.gmane.org/gmane.linux.ports.arm.omap/88824

Signed-off-by: Mike Turquette <mturquette@ti.com>
[paul@pwsan.com: split the hwmod and clock disable cases; modified the
 code to skip the clockdomain handling during the disable-unused-clocks phase;
 added COMMON_CLK ifdef; removed include of clk-private.h at Mike's request]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
2012-11-12 19:10:19 -07:00
..
2012-09-20 15:02:23 -07:00
2012-10-15 14:42:15 +05:30
2012-03-28 20:59:45 -07:00
2012-09-20 15:02:22 -07:00
2012-09-20 15:03:59 -07:00
2012-09-20 15:04:00 -07:00
2012-09-20 15:04:01 -07:00
2012-09-20 15:04:03 -07:00
2012-10-18 16:23:20 -07:00
2012-07-09 19:14:39 +05:30
2012-10-01 18:19:05 -07:00
2012-07-23 17:43:53 -07:00
2012-10-18 16:23:20 -07:00
2012-10-09 07:07:14 +09:00
2012-09-12 02:57:10 -06:00
2012-09-12 02:57:10 -06:00