Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187335
b: refs/heads/master
c: fb6e76c
h: refs/heads/master
i:
  187333: bb02f8f
  187331: 558c913
  187327: 642df9c
v: v3
  • Loading branch information
Ben Dooks authored and Ben Dooks committed Jan 15, 2010
1 parent 74670a6 commit 33220a7
Show file tree
Hide file tree
Showing 2 changed files with 14 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: 2c2f69b15d5420291a941ace10149e76f0af7ab0
refs/heads/master: fb6e76cd2309c76d2120e013ff34ff6ab27aad88
15 changes: 13 additions & 2 deletions trunk/arch/arm/plat-samsung/clock-clksrc.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,25 @@ static struct clk_ops clksrc_ops = {
.round_rate = s3c_roundrate_clksrc,
};

static struct clk_ops clksrc_ops_nodiv = {
.set_parent = s3c_setparent_clksrc,
};

void __init s3c_register_clksrc(struct clksrc_clk *clksrc, int size)
{
int ret;

WARN_ON(!clksrc->reg_div.reg && !clksrc->reg_src.reg);

for (; size > 0; size--, clksrc++) {
/* fill in the default functions */
if (!clksrc->clk.ops)
clksrc->clk.ops = &clksrc_ops;

if (!clksrc->clk.ops) {
if (!clksrc->reg_div.reg)
clksrc->clk.ops = &clksrc_ops_nodiv;
else
clksrc->clk.ops = &clksrc_ops;
}

/* setup the clocksource, but do not announce it
* as it may be re-set by the setup routines
Expand Down

0 comments on commit 33220a7

Please sign in to comment.