Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131561
b: refs/heads/master
c: 41f3103
h: refs/heads/master
i:
  131559: cff6cfd
v: v3
  • Loading branch information
Russell King authored and Russell King committed Feb 19, 2009
1 parent 8eb3cad commit 42417e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 22eb36f49e24e922ca6594a99157a3fcb92d3824
refs/heads/master: 41f3103fcfffff096c34f5267d7c9a26b44d89d3
8 changes: 4 additions & 4 deletions trunk/arch/arm/mach-omap2/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ int omap2_clk_set_parent(struct clk *clk, struct clk *new_parent)
return -EINVAL;

if (clk->usecount > 0)
_omap2_clk_disable(clk);
omap2_clk_disable(clk);

/* Set new source value (previous dividers if any in effect) */
reg_val = __raw_readl(src_addr) & ~field_mask;
Expand All @@ -759,11 +759,11 @@ int omap2_clk_set_parent(struct clk *clk, struct clk *new_parent)
wmb();
}

if (clk->usecount > 0)
_omap2_clk_enable(clk);

clk->parent = new_parent;

if (clk->usecount > 0)
omap2_clk_enable(clk);

/* CLKSEL clocks follow their parents' rates, divided by a divisor */
clk->rate = new_parent->rate;

Expand Down

0 comments on commit 42417e1

Please sign in to comment.