projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1955666
)
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
patch
|
blob
|
history
diff --git
a/arch/arm/mach-rk2818/clock.c
b/arch/arm/mach-rk2818/clock.c
index d4e482a4d0251f339bf84903f63df98f0a0f4f07..59233f1e81f3aafe7dd821dfcf6af6d906e0b555 100644
(file)
--- a/
arch/arm/mach-rk2818/clock.c
+++ b/
arch/arm/mach-rk2818/clock.c
@@
-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);