Skip to content

Commit

Permalink
OMAP: hwmod: Fix the missing braces
Browse files Browse the repository at this point in the history
As reported by Sergei, a couple of braces were missing after
the WARN removal patch.

[07/22] OMAP: hwmod: Replace WARN by pr_warning if clock lookup failed

https://patchwork.kernel.org/patch/100756/

Signed-off-by: Benoit Cousson <[email protected]>
[[email protected]: fixed patch description per Anand's E-mail]
Signed-off-by: Paul Walmsley <[email protected]>
Cc: Sergei Shtylyov <[email protected]>
Cc: Anand Gadiyar <[email protected]>
  • Loading branch information
Benoit Cousson authored and Paul Walmsley committed Jun 24, 2010
1 parent 7e27d6e commit dc75925
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions arch/arm/mach-omap2/omap_hwmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -409,10 +409,11 @@ static int _init_main_clk(struct omap_hwmod *oh)
return 0;

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

if (!oh->_clk->clkdm)
pr_warning("omap_hwmod: %s: missing clockdomain for %s.\n",
Expand Down Expand Up @@ -444,10 +445,11 @@ static int _init_interface_clks(struct omap_hwmod *oh)
continue;

c = omap_clk_get_by_name(os->clk);
if (!c)
if (!c) {
pr_warning("omap_hwmod: %s: cannot clk_get interface_clk %s\n",
oh->name, os->clk);
ret = -EINVAL;
}
os->_clk = c;
}

Expand All @@ -470,10 +472,11 @@ static int _init_opt_clks(struct omap_hwmod *oh)

for (i = oh->opt_clks_cnt, oc = oh->opt_clks; i > 0; i--, oc++) {
c = omap_clk_get_by_name(oc->clk);
if (!c)
if (!c) {
pr_warning("omap_hwmod: %s: cannot clk_get opt_clk %s\n",
oh->name, oc->clk);
ret = -EINVAL;
}
oc->_clk = c;
}

Expand Down

0 comments on commit dc75925

Please sign in to comment.