ARM i.MX28: use correct register for setting the rate
authorSascha Hauer <s.hauer@pengutronix.de>
Fri, 14 Jan 2011 14:23:12 +0000 (15:23 +0100)
committerSascha Hauer <s.hauer@pengutronix.de>
Mon, 24 Jan 2011 08:01:39 +0000 (09:01 +0100)
_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>
arch/arm/mach-mxs/clock-mx28.c

index 4146b38605de3d75ed60cde03433e015d6415b28..44acd9cd17790d436223cee3821c9154c7c2a156 100644 (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 +                   \