From patchwork Fri Aug 12 15:27:35 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjarne Steinsbo X-Patchwork-Id: 1061412 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p7CFRbj8007620 for ; Fri, 12 Aug 2011 15:27:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751331Ab1HLP1h (ORCPT ); Fri, 12 Aug 2011 11:27:37 -0400 Received: from mail-vx0-f174.google.com ([209.85.220.174]:35866 "EHLO mail-vx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750912Ab1HLP1g (ORCPT ); Fri, 12 Aug 2011 11:27:36 -0400 Received: by vxi9 with SMTP id 9so2453955vxi.19 for ; Fri, 12 Aug 2011 08:27:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Q8zVL1u9zrJA1HHUYZKfn/RoPeJmDDzdIAkSontVQso=; b=VbplYGzJr6vJV4p/nQFkZat05qvxzpAtZzfJWtUJhc/A4zENiWtVtUr6ZC9NG3uST/ cDwtD+MfmzEBANYHuqdhy8RQO9aHZQgTYB+Fe35ezsPXiqqHSUtqV0qE0ngPG+trkVN6 UTVH++y+Y07ubRuD6X/G8N4y9m3P5NNMfCDa0= MIME-Version: 1.0 Received: by 10.220.150.196 with SMTP id z4mr250652vcv.272.1313162855584; Fri, 12 Aug 2011 08:27:35 -0700 (PDT) Received: by 10.220.203.138 with HTTP; Fri, 12 Aug 2011 08:27:35 -0700 (PDT) In-Reply-To: References: Date: Fri, 12 Aug 2011 17:27:35 +0200 Message-ID: Subject: [PATCHv2 1/4] OMAP4: clockdata: Make compiler shut up about possible uninitialized variable From: Bjarne Steinsbo To: linux-omap@vger.kernel.org Cc: Tony Lindgren , Felipe Balbi 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.6 (demeter1.kernel.org [140.211.167.41]); Fri, 12 Aug 2011 15:27:38 +0000 (UTC) Stop `warning: 'cpu_clkflg' may be used uninitialized in this function' from compiler. Signed-off-by: Bjarne Steinsbo Reviewed-by: Felipe Balbi --- V2: Oops.. Add missing sob. arch/arm/mach-omap2/clock44xx_data.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/clock44xx_data.c b/arch/arm/mach-omap2/clock44xx_data.c index 2af0e3f..a9c19c8 100644 --- a/arch/arm/mach-omap2/clock44xx_data.c +++ b/arch/arm/mach-omap2/clock44xx_data.c @@ -3368,7 +3368,7 @@ static struct omap_clk omap44xx_clks[] = { int __init omap4xxx_clk_init(void) { struct omap_clk *c; - u32 cpu_clkflg; + u32 cpu_clkflg = 0; if (cpu_is_omap44xx()) { cpu_mask = RATE_IN_4430;