Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323000
b: refs/heads/master
c: d6838a6
h: refs/heads/master
v: v3
  • Loading branch information
Tushar Behera authored and Kukjin Kim committed Sep 18, 2012
1 parent 19723dc commit 67b4ff0
Show file tree
Hide file tree
Showing 2 changed files with 4 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: dbc5e1e89aafd484ad279ec6b9267dcd2c67df3f
refs/heads/master: d6838a62b4d36d3e2791cffe155586973b20a381
5 changes: 3 additions & 2 deletions trunk/arch/arm/plat-samsung/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ long clk_round_rate(struct clk *clk, unsigned long rate)

int clk_set_rate(struct clk *clk, unsigned long rate)
{
unsigned long flags;
int ret;

if (IS_ERR(clk))
Expand All @@ -159,9 +160,9 @@ int clk_set_rate(struct clk *clk, unsigned long rate)
if (clk->ops == NULL || clk->ops->set_rate == NULL)
return -EINVAL;

spin_lock(&clocks_lock);
spin_lock_irqsave(&clocks_lock, flags);
ret = (clk->ops->set_rate)(clk, rate);
spin_unlock(&clocks_lock);
spin_unlock_irqrestore(&clocks_lock, flags);

return ret;
}
Expand Down

0 comments on commit 67b4ff0

Please sign in to comment.