Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196215
b: refs/heads/master
c: 6340338
h: refs/heads/master
i:
  196213: d944e0c
  196211: acc95a2
  196207: 7cddfac
v: v3
  • Loading branch information
Benoit Cousson authored and Paul Walmsley committed May 20, 2010
1 parent d9e74e2 commit 4c14ffd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 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: 5c2c02961ea39d7bbe4d87f362ab3173a424794b
refs/heads/master: 63403384233e3f58514eea891003458dedd43c12
13 changes: 6 additions & 7 deletions trunk/arch/arm/mach-omap2/omap_hwmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,21 +404,20 @@ static int _del_initiator_dep(struct omap_hwmod *oh, struct omap_hwmod *init_oh)
*/
static int _init_main_clk(struct omap_hwmod *oh)
{
struct clk *c;
int ret = 0;

if (!oh->main_clk)
return 0;

c = omap_clk_get_by_name(oh->main_clk);
if (!c)
oh->_clk = omap_clk_get_by_name(oh->main_clk);
if (!oh->_clk)
pr_warning("omap_hwmod: %s: cannot clk_get main_clk %s\n",
oh->name, oh->main_clk);
ret = -EINVAL;
oh->_clk = c;
return -EINVAL;

WARN(!c->clkdm, "omap_hwmod: %s: missing clockdomain for %s.\n",
oh->main_clk, c->name);
if (!oh->_clk->clkdm)
pr_warning("omap_hwmod: %s: missing clockdomain for %s.\n",
oh->main_clk, oh->_clk->name);

return ret;
}
Expand Down

0 comments on commit 4c14ffd

Please sign in to comment.