From 4e9c720fec4a737d143fd24e278b4a94a45f16a5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Tue, 21 Sep 2010 18:15:30 +0800 Subject: [PATCH] =?utf8?q?clock:=20clk=5Fget=5Frate=E4=B8=8D=E5=8A=A0?= =?utf8?q?=E9=94=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- arch/arm/mach-rk2818/clock.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/arm/mach-rk2818/clock.c b/arch/arm/mach-rk2818/clock.c index d4e482a4d025..59233f1e81f3 100644 --- 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); -- 2.34.1