diff options
Diffstat (limited to 'arch/arm/plat-omap/clock.c')
-rw-r--r-- | arch/arm/plat-omap/clock.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/plat-omap/clock.c b/arch/arm/plat-omap/clock.c index ae77e10719f2..b7137c560db4 100644 --- a/arch/arm/plat-omap/clock.c +++ b/arch/arm/plat-omap/clock.c | |||
@@ -182,6 +182,8 @@ int clk_set_rate(struct clk *clk, unsigned long rate) | |||
182 | spin_lock_irqsave(&clockfw_lock, flags); | 182 | spin_lock_irqsave(&clockfw_lock, flags); |
183 | if (arch_clock->clk_set_rate) | 183 | if (arch_clock->clk_set_rate) |
184 | ret = arch_clock->clk_set_rate(clk, rate); | 184 | ret = arch_clock->clk_set_rate(clk, rate); |
185 | if (ret == 0 && (clk->flags & RATE_PROPAGATES)) | ||
186 | propagate_rate(clk); | ||
185 | spin_unlock_irqrestore(&clockfw_lock, flags); | 187 | spin_unlock_irqrestore(&clockfw_lock, flags); |
186 | 188 | ||
187 | return ret; | 189 | return ret; |
@@ -198,7 +200,9 @@ int clk_set_parent(struct clk *clk, struct clk *parent) | |||
198 | 200 | ||
199 | spin_lock_irqsave(&clockfw_lock, flags); | 201 | spin_lock_irqsave(&clockfw_lock, flags); |
200 | if (arch_clock->clk_set_parent) | 202 | if (arch_clock->clk_set_parent) |
201 | ret = arch_clock->clk_set_parent(clk, parent); | 203 | ret = arch_clock->clk_set_parent(clk, parent); |
204 | if (ret == 0 && (clk->flags & RATE_PROPAGATES)) | ||
205 | propagate_rate(clk); | ||
202 | spin_unlock_irqrestore(&clockfw_lock, flags); | 206 | spin_unlock_irqrestore(&clockfw_lock, flags); |
203 | 207 | ||
204 | return ret; | 208 | return ret; |