S3C2443: Fix bit-reset in setrate of clk_armdiv
From: Heiko Stuebner <heiko@...> Date: Thu, 22 Sep 2011 22:24:19 +0200
Commit-Message
The changed statement should set the old armdiv bits to 0 and not everything else, before setting the new value. Signed-off-by: Heiko Stuebner <heiko@...>
Patch-Comment
arch/arm/mach-s3c2443/clock.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Statistics
- 1 lines added
- 1 lines removed
Changes
------------------------ arch/arm/mach-s3c2443/clock.c -------------------------
index 966bde5..27549c4 100644
@@ -124,7 +124,7 @@ static int s3c2443_armclk_setrate(struct clk *clk, unsigned long rate)
unsigned long clkcon0;
clkcon0 = __raw_readl(S3C2443_CLKDIV0);
+ clkcon0 &= ~S3C2443_CLKDIV0_ARMDIV_MASK;
clkcon0 |= val << S3C2443_CLKDIV0_ARMDIV_SHIFT;
__raw_writel(clkcon0, S3C2443_CLKDIV0);
}