Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28874
b: refs/heads/master
c: 92b7eb8
h: refs/heads/master
v: v3
  • Loading branch information
Ben Dooks authored and Russell King committed Jun 22, 2006
1 parent 621533a commit e68859f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 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: 99c13853ffa26dd6527995b3f47548e075f201fb
refs/heads/master: 92b7eb8ffc0741f1fd5fbd5458a466d608310442
7 changes: 5 additions & 2 deletions trunk/arch/arm/mach-s3c2410/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,11 @@ unsigned long clk_get_rate(struct clk *clk)
if (clk->rate != 0)
return clk->rate;

while (clk->parent != NULL && clk->rate == 0)
clk = clk->parent;
if (clk->get_rate != NULL)
return (clk->get_rate)(clk);

if (clk->parent != NULL)
return clk_get_rate(clk->parent);

return clk->rate;
}
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-s3c2410/clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ struct clk {

int (*enable)(struct clk *, int enable);
int (*set_rate)(struct clk *c, unsigned long rate);
unsigned long (*get_rate)(struct clk *c);
unsigned long (*round_rate)(struct clk *c, unsigned long rate);
int (*set_parent)(struct clk *c, struct clk *parent);
};
Expand Down

0 comments on commit e68859f

Please sign in to comment.