fix wrong usecount bug
author黄涛 <huangtao@rock-chips.com>
Fri, 28 May 2010 14:21:52 +0000 (14:21 +0000)
committer黄涛 <huangtao@rock-chips.com>
Mon, 21 Jun 2010 05:35:19 +0000 (13:35 +0800)
arch/arm/mach-rk2818/clock.c

index bad081b6bac224c4bc30bc444ed4c38597996540..9298ec18d1f5424c374751e6536dff6e5fb6e7b4 100644 (file)
@@ -1014,9 +1014,9 @@ static void __clk_disable(struct clk *clk)
                if (clk->mode)
                        clk->mode(clk, 0);
                pr_debug("clock: %s disabled\n", clk->name);
+               if (clk->parent)
+                       __clk_disable(clk->parent);
        }
-       if (clk->parent)
-               __clk_disable(clk->parent);
 }
 
 void clk_disable(struct clk *clk)