Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137292
b: refs/heads/master
c: c6af450
h: refs/heads/master
v: v3
  • Loading branch information
Russell King authored and Russell King committed Feb 8, 2009
1 parent a3512b1 commit d9590fc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2e777bf1f2482be13c2b678744d3497a4f0a0ec2
refs/heads/master: c6af45085211db8720d6b94b3985ce7198d764e3
3 changes: 0 additions & 3 deletions trunk/arch/arm/mach-omap1/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -628,9 +628,6 @@ static int omap1_clk_set_rate(struct clk *clk, unsigned long rate)
ret = 0;
}

if (unlikely(ret == 0 && (clk->flags & RATE_PROPAGATES)))
propagate_rate(clk);

return ret;
}

Expand Down
6 changes: 0 additions & 6 deletions trunk/arch/arm/mach-omap2/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -684,9 +684,6 @@ int omap2_clk_set_rate(struct clk *clk, unsigned long rate)
if (clk->set_rate != NULL)
ret = clk->set_rate(clk, rate);

if (unlikely(ret == 0 && (clk->flags & RATE_PROPAGATES)))
propagate_rate(clk);

return ret;
}

Expand Down Expand Up @@ -774,9 +771,6 @@ int omap2_clk_set_parent(struct clk *clk, struct clk *new_parent)
pr_debug("clock: set parent of %s to %s (new rate %ld)\n",
clk->name, clk->parent->name, clk->rate);

if (unlikely(clk->flags & RATE_PROPAGATES))
propagate_rate(clk);

return 0;
}

Expand Down
6 changes: 5 additions & 1 deletion trunk/arch/arm/plat-omap/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ int clk_set_rate(struct clk *clk, unsigned long rate)
spin_lock_irqsave(&clockfw_lock, flags);
if (arch_clock->clk_set_rate)
ret = arch_clock->clk_set_rate(clk, rate);
if (ret == 0 && (clk->flags & RATE_PROPAGATES))
propagate_rate(clk);
spin_unlock_irqrestore(&clockfw_lock, flags);

return ret;
Expand All @@ -198,7 +200,9 @@ int clk_set_parent(struct clk *clk, struct clk *parent)

spin_lock_irqsave(&clockfw_lock, flags);
if (arch_clock->clk_set_parent)
ret = arch_clock->clk_set_parent(clk, parent);
ret = arch_clock->clk_set_parent(clk, parent);
if (ret == 0 && (clk->flags & RATE_PROPAGATES))
propagate_rate(clk);
spin_unlock_irqrestore(&clockfw_lock, flags);

return ret;
Expand Down

0 comments on commit d9590fc

Please sign in to comment.