clock: clk_get_rate不加锁
author黄涛 <huangtao@rock-chips.com>
Tue, 21 Sep 2010 10:15:30 +0000 (18:15 +0800)
committer黄涛 <huangtao@rock-chips.com>
Tue, 21 Sep 2010 10:15:30 +0000 (18:15 +0800)
arch/arm/mach-rk2818/clock.c

index d4e482a4d0251f339bf84903f63df98f0a0f4f07..59233f1e81f3aafe7dd821dfcf6af6d906e0b555 100644 (file)
@@ -1304,16 +1304,10 @@ EXPORT_SYMBOL(clk_disable);
 
 unsigned long clk_get_rate(struct clk *clk)
 {
-       unsigned long ret;
-
        if (clk == NULL || IS_ERR(clk))
                return 0;
 
-       LOCK();
-       ret = clk->rate;
-       UNLOCK();
-
-       return ret;
+       return clk->rate;
 }
 EXPORT_SYMBOL(clk_get_rate);