Browse Source

[ARM] 4763/1: pxa: fix pxa3xx_get_clk_frequency_khz() to return KHz

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>
eric miao 17 years ago
parent
commit
6232be32af
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/arm/mach-pxa/pxa3xx.c

+ 1 - 1
arch/arm/mach-pxa/pxa3xx.c

@@ -86,7 +86,7 @@ unsigned int pxa3xx_get_clk_frequency_khz(int info)
 			HSS / 1000000, (HSS % 1000000) / 10000);
 	}
 
-	return CLK;
+	return CLK / 1000;
 }
 
 /*