clock: clk_get_rate不加锁

This commit is contained in:
黄涛
2010-09-21 18:15:30 +08:00
parent 1955666763
commit 4e9c720fec

View 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);