]> err.no Git - linux-2.6/commitdiff
[ARM] 4763/1: pxa: fix pxa3xx_get_clk_frequency_khz() to return KHz
authoreric miao <eric.y.miao@gmail.com>
Thu, 24 Jan 2008 01:27:30 +0000 (02:27 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 28 Jan 2008 10:14:53 +0000 (10:14 +0000)
The original code incorrectly returns Hz instead of KHz.

Signed-off-by: eric miao <eric.miao@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-pxa/pxa3xx.c

index 61d9c9d69e6b54c17d49067a3f3822e161c33d09..37e93f9ba8fc6d86976fc40387c2016b2aa8770d 100644 (file)
@@ -86,7 +86,7 @@ unsigned int pxa3xx_get_clk_frequency_khz(int info)
                        HSS / 1000000, (HSS % 1000000) / 10000);
        }
 
-       return CLK;
+       return CLK / 1000;
 }
 
 /*