diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/sh/clk/cpg.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/sh/clk/cpg.c b/drivers/sh/clk/cpg.c index 5aedcdf4ac5c..1ebe67cd1833 100644 --- a/drivers/sh/clk/cpg.c +++ b/drivers/sh/clk/cpg.c | |||
| @@ -126,6 +126,12 @@ static int sh_clk_div_set_rate(struct clk *clk, unsigned long rate) | |||
| 126 | 126 | ||
| 127 | static int sh_clk_div_enable(struct clk *clk) | 127 | static int sh_clk_div_enable(struct clk *clk) |
| 128 | { | 128 | { |
| 129 | if (clk->div_mask == SH_CLK_DIV6_MSK) { | ||
| 130 | int ret = sh_clk_div_set_rate(clk, clk->rate); | ||
| 131 | if (ret < 0) | ||
| 132 | return ret; | ||
| 133 | } | ||
| 134 | |||
| 129 | sh_clk_write(sh_clk_read(clk) & ~CPG_CKSTP_BIT, clk); | 135 | sh_clk_write(sh_clk_read(clk) & ~CPG_CKSTP_BIT, clk); |
| 130 | return 0; | 136 | return 0; |
| 131 | } | 137 | } |
