diff options
author | Magnus Damm <damm@opensource.se> | 2011-12-08 08:59:03 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-12-09 04:01:06 -0500 |
commit | b3ab82b3eb191ad2cd8110cb5de0afb790337000 (patch) | |
tree | ef7af8476467d9b6d5a8218807916407afa743a3 /drivers/sh/clk/cpg.c | |
parent | eda2030a5b60bb818f062adacbcfb6fd2d366fb9 (diff) |
sh: use ioread32/iowrite32 and mapped_reg for mstp32
Convert the CPG MSTP32 helper code to use the new mapped_reg
together with ioread32() and iowrite32().
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/sh/clk/cpg.c')
-rw-r--r-- | drivers/sh/clk/cpg.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/sh/clk/cpg.c b/drivers/sh/clk/cpg.c index 5e4301b936e7..ed8bc70730f5 100644 --- a/drivers/sh/clk/cpg.c +++ b/drivers/sh/clk/cpg.c | |||
@@ -15,15 +15,15 @@ | |||
15 | 15 | ||
16 | static int sh_clk_mstp32_enable(struct clk *clk) | 16 | static int sh_clk_mstp32_enable(struct clk *clk) |
17 | { | 17 | { |
18 | __raw_writel(__raw_readl(clk->enable_reg) & ~(1 << clk->enable_bit), | 18 | iowrite32(ioread32(clk->mapped_reg) & ~(1 << clk->enable_bit), |
19 | clk->enable_reg); | 19 | clk->mapped_reg); |
20 | return 0; | 20 | return 0; |
21 | } | 21 | } |
22 | 22 | ||
23 | static void sh_clk_mstp32_disable(struct clk *clk) | 23 | static void sh_clk_mstp32_disable(struct clk *clk) |
24 | { | 24 | { |
25 | __raw_writel(__raw_readl(clk->enable_reg) | (1 << clk->enable_bit), | 25 | iowrite32(ioread32(clk->mapped_reg) | (1 << clk->enable_bit), |
26 | clk->enable_reg); | 26 | clk->mapped_reg); |
27 | } | 27 | } |
28 | 28 | ||
29 | static struct clk_ops sh_clk_mstp32_clk_ops = { | 29 | static struct clk_ops sh_clk_mstp32_clk_ops = { |