From patchwork Thu Jun 24 00:24:47 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Walmsley X-Patchwork-Id: 107720 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o5O0PkXv017249 for ; Thu, 24 Jun 2010 00:25:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753811Ab0FXAZp (ORCPT ); Wed, 23 Jun 2010 20:25:45 -0400 Received: from utopia.booyaka.com ([72.9.107.138]:33473 "EHLO utopia.booyaka.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751520Ab0FXAZo (ORCPT ); Wed, 23 Jun 2010 20:25:44 -0400 Received: (qmail 29074 invoked by uid 1019); 24 Jun 2010 00:25:43 -0000 MBOX-Line: From nobody Wed Jun 23 18:24:47 2010 Subject: [PATCH] OMAP: hwmod: Fix the missing braces To: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org From: Paul Walmsley Cc: Benoit Cousson , Sergei Shtylyov , Anand Gadiyar Date: Wed, 23 Jun 2010 18:24:47 -0600 Message-ID: <20100624002438.12347.60529.stgit@localhost.localdomain> In-Reply-To: <20100624002249.12347.37548.stgit@localhost.localdomain> References: <20100624002249.12347.37548.stgit@localhost.localdomain> User-Agent: StGit/0.15-83-g972d5 MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 24 Jun 2010 00:25:48 +0000 (UTC) diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c index 95c9a5f..b7a4133 100644 --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c @@ -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", @@ -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; } @@ -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; }