Message ID | 20100219091200.472.86301.sendpatchset@t400s (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
--- 0001/arch/sh/kernel/cpu/clock-cpg.c +++ work/arch/sh/kernel/cpu/clock-cpg.c 2010-02-19 16:21:09.000000000 +0900 @@ -192,8 +192,8 @@ static int sh_clk_div4_set_rate(struct c return idx; value = __raw_readl(clk->enable_reg); - value &= ~0xf; - value |= idx; + value &= ~(0xf << clk->enable_bit); + value |= (idx << clk->enable_bit); __raw_writel(value, clk->enable_reg); return 0;