ARM: mxs: fix clock base address missing
authorShawn Guo <shawn.guo@freescale.com>
Wed, 26 Jan 2011 22:26:36 +0000 (06:26 +0800)
committerSascha Hauer <s.hauer@pengutronix.de>
Tue, 1 Feb 2011 09:35:38 +0000 (10:35 +0100)
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-mxs/clock-mx23.c
arch/arm/mach-mxs/clock-mx28.c

index 72069243aec48744dda045bc3622455e801be492..ca72a05ed9c112daa9eab1929eac6f467a20183a 100644 (file)
@@ -347,7 +347,7 @@ static int name##_set_parent(struct clk *clk, struct clk *parent)   \
 {                                                                      \
        if (parent != clk->parent) {                                    \
                __raw_writel(BM_CLKCTRL_CLKSEQ_BYPASS_##bit,            \
-                        HW_CLKCTRL_CLKSEQ_TOG);                        \
+                        CLKCTRL_BASE_ADDR + HW_CLKCTRL_CLKSEQ_TOG);    \
                clk->parent = parent;                                   \
        }                                                               \
                                                                        \
index 44acd9cd17790d436223cee3821c9154c7c2a156..bf30d2b66d8a2967f6e2ade252e78cc11297a31c 100644 (file)
@@ -483,7 +483,7 @@ static int name##_set_parent(struct clk *clk, struct clk *parent)   \
 {                                                                      \
        if (parent != clk->parent) {                                    \
                __raw_writel(BM_CLKCTRL_CLKSEQ_BYPASS_##bit,            \
-                        HW_CLKCTRL_CLKSEQ_TOG);                        \
+                        CLKCTRL_BASE_ADDR + HW_CLKCTRL_CLKSEQ_TOG);    \
                clk->parent = parent;                                   \
        }                                                               \
                                                                        \