Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146828
b: refs/heads/master
c: d672fef
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed May 13, 2009
1 parent 6f99cc6 commit d40c036
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: af777ce42d3d51cdef353ce296d6f99dc503feef
refs/heads/master: d672fef02738582bdeae6e77176e141eeb9169bc
6 changes: 3 additions & 3 deletions trunk/arch/sh/kernel/cpu/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void propagate_rate(struct clk *tclk)
struct clk *clkp;

list_for_each_entry(clkp, &tclk->children, sibling) {
if (clkp->ops->recalc)
if (clkp->ops && clkp->ops->recalc)
clkp->rate = clkp->ops->recalc(clkp);
propagate_rate(clkp);
}
Expand Down Expand Up @@ -196,7 +196,7 @@ void recalculate_root_clocks(void)
struct clk *clkp;

list_for_each_entry(clkp, &root_clks, sibling) {
if (clkp->ops->recalc)
if (clkp->ops && clkp->ops->recalc)
clkp->rate = clkp->ops->recalc(clkp);
propagate_rate(clkp);
}
Expand Down Expand Up @@ -224,7 +224,7 @@ int clk_register(struct clk *clk)
list_add(&clk->sibling, &root_clks);

list_add(&clk->node, &clock_list);
if (clk->ops->init)
if (clk->ops && clk->ops->init)
clk->ops->init(clk);
mutex_unlock(&clock_list_sem);

Expand Down

0 comments on commit d40c036

Please sign in to comment.