Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187337
b: refs/heads/master
c: 1423569
h: refs/heads/master
i:
  187335: 33220a7
v: v3
  • Loading branch information
Ben Dooks committed Jan 15, 2010
1 parent 2e5cb13 commit 2c28c88
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 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: 1d9f13c49ed750260f40317629bdd66160a3ac16
refs/heads/master: 14235696d401e62f8f5740ca2fb917ab42b9fd18
10 changes: 9 additions & 1 deletion trunk/arch/arm/plat-samsung/clock-clksrc.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static int s3c_setparent_clksrc(struct clk *clk, struct clk *parent)
break;
}

if (src_nr >= 0 && sclk->reg_src.reg) {
if (src_nr >= 0) {
clk->parent = parent;

clksrc &= ~mask;
Expand Down Expand Up @@ -162,6 +162,12 @@ static struct clk_ops clksrc_ops_nodiv = {
.set_parent = s3c_setparent_clksrc,
};

static struct clk_ops clksrc_ops_nosrc = {
.get_rate = s3c_getrate_clksrc,
.set_rate = s3c_setrate_clksrc,
.round_rate = s3c_roundrate_clksrc,
};

void __init s3c_register_clksrc(struct clksrc_clk *clksrc, int size)
{
int ret;
Expand All @@ -174,6 +180,8 @@ void __init s3c_register_clksrc(struct clksrc_clk *clksrc, int size)
if (!clksrc->clk.ops) {
if (!clksrc->reg_div.reg)
clksrc->clk.ops = &clksrc_ops_nodiv;
else if (!clksrc->reg_src.reg)
clksrc->clk.ops = &clksrc_ops_nosrc;
else
clksrc->clk.ops = &clksrc_ops;
}
Expand Down

0 comments on commit 2c28c88

Please sign in to comment.