ARM i.MX28: use correct register for setting the rate

_CLK_SET_RATE does not only handle the cpu clock but also other
clocks, so do not hardcode the HW_CLKCTRL_CPU register.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Shawn Guo <shawn.guo@freescale.com>
This commit is contained in:
Sascha Hauer 2011-01-14 15:23:12 +01:00
parent 13be9f00c3
commit 34d80730c3
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@ static int name##_set_rate(struct clk *clk, unsigned long rate) \
return -EINVAL; \
} \
} \
__raw_writel(reg, CLKCTRL_BASE_ADDR + HW_CLKCTRL_CPU); \
__raw_writel(reg, CLKCTRL_BASE_ADDR + HW_CLKCTRL_##dr); \
\
for (i = 10000; i; i--) \
if (!(__raw_readl(CLKCTRL_BASE_ADDR + \