diff options
author | Paul Mundt <lethal@linux-sh.org> | 2012-05-25 02:26:01 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-05-25 02:26:01 -0400 |
commit | 75f5f8a56e0fdf6d32b3ae9c44c10bc0acd3857c (patch) | |
tree | ab4c7322730e02674e35e5cbbd9ac4afc57db628 /include/linux/sh_clk.h | |
parent | 1111cc1e8080b5ff46f5b945acb2f99d6176b2d1 (diff) |
sh: clkfwk: Use shared sh_clk_div_recalc().
This generalizes the div4 recalc routine for use by div6 and others, then
makes it the default.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/linux/sh_clk.h')
-rw-r--r-- | include/linux/sh_clk.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sh_clk.h b/include/linux/sh_clk.h index d540b8153178..35a04f19fb53 100644 --- a/include/linux/sh_clk.h +++ b/include/linux/sh_clk.h | |||
@@ -172,6 +172,7 @@ int sh_clk_div4_reparent_register(struct clk *clks, int nr, | |||
172 | _num_parents, _src_shift, _src_width) \ | 172 | _num_parents, _src_shift, _src_width) \ |
173 | { \ | 173 | { \ |
174 | .enable_reg = (void __iomem *)_reg, \ | 174 | .enable_reg = (void __iomem *)_reg, \ |
175 | .enable_bit = 0, /* unused */ \ | ||
175 | .flags = _flags, \ | 176 | .flags = _flags, \ |
176 | .div_mask = SH_CLK_DIV6_MSK, \ | 177 | .div_mask = SH_CLK_DIV6_MSK, \ |
177 | .parent_table = _parents, \ | 178 | .parent_table = _parents, \ |
@@ -184,6 +185,7 @@ int sh_clk_div4_reparent_register(struct clk *clks, int nr, | |||
184 | { \ | 185 | { \ |
185 | .parent = _parent, \ | 186 | .parent = _parent, \ |
186 | .enable_reg = (void __iomem *)_reg, \ | 187 | .enable_reg = (void __iomem *)_reg, \ |
188 | .enable_bit = 0, /* unused */ \ | ||
187 | .div_mask = SH_CLK_DIV6_MSK, \ | 189 | .div_mask = SH_CLK_DIV6_MSK, \ |
188 | .flags = _flags, \ | 190 | .flags = _flags, \ |
189 | } | 191 | } |