diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-01-14 15:23:12 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-01-24 09:01:39 +0100 |
commit | 34d80730c30fa37740cb43bb0eec62352df3a7c6 (patch) | |
tree | 47eeb710547b14f8811a1cf8af04dec28b85a68f /arch | |
parent | 13be9f00c33fe69112fe6c755d6a8f3e249abbb2 (diff) | |
download | talos-obmc-linux-34d80730c30fa37740cb43bb0eec62352df3a7c6.tar.gz talos-obmc-linux-34d80730c30fa37740cb43bb0eec62352df3a7c6.zip |
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-mxs/clock-mx28.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-mxs/clock-mx28.c b/arch/arm/mach-mxs/clock-mx28.c index 4146b38605de..44acd9cd1779 100644 --- a/arch/arm/mach-mxs/clock-mx28.c +++ b/arch/arm/mach-mxs/clock-mx28.c @@ -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 + \ |