Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187385
b: refs/heads/master
c: b8792db
h: refs/heads/master
i:
  187383: 58b3785
v: v3
  • Loading branch information
Thomas Abraham authored and Ben Dooks committed Jan 18, 2010
1 parent 10100a4 commit 73b558b
Show file tree
Hide file tree
Showing 2 changed files with 9 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: a0de298a0eee7f9004a8e512c12c7b40d66c9934
refs/heads/master: b8792dbff6ed93c5a77f71917d4a0c5efa12eee1
11 changes: 8 additions & 3 deletions trunk/arch/arm/plat-samsung/clock-clksrc.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,16 @@ void __init_or_cpufreq s3c_set_clksrc(struct clksrc_clk *clk, bool announce)
{
struct clksrc_sources *srcs = clk->sources;
u32 mask = bit_mask(clk->reg_src.shift, clk->reg_src.size);
u32 clksrc = 0;
u32 clksrc;

if (clk->reg_src.reg)
clksrc = __raw_readl(clk->reg_src.reg);
if (!clk->reg_src.reg) {
if (!clk->clk.parent)
printk(KERN_ERR "%s: no parent clock specified\n",
clk->clk.name);
return;
}

clksrc = __raw_readl(clk->reg_src.reg);
clksrc &= mask;
clksrc >>= clk->reg_src.shift;

Expand Down

0 comments on commit 73b558b

Please sign in to comment.