Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137297
b: refs/heads/master
c: dbb674d
h: refs/heads/master
i:
  137295: 9a789a5
v: v3
  • Loading branch information
Russell King authored and Russell King committed Feb 8, 2009
1 parent f1a5eca commit 1cb905e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1e98ffa85e70f423e2e41156cc3d549c353cd897
refs/heads/master: dbb674d57b5851a4fe3122ff4280e4cf87209198
6 changes: 6 additions & 0 deletions trunk/arch/arm/plat-omap/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,12 @@ int clk_register(struct clk *clk)
if (clk == NULL || IS_ERR(clk))
return -EINVAL;

/*
* trap out already registered clocks
*/
if (clk->node.next || clk->node.prev)
return 0;

mutex_lock(&clocks_mutex);
list_add(&clk->node, &clocks);
if (clk->init)
Expand Down

0 comments on commit 1cb905e

Please sign in to comment.