From patchwork Tue Feb 15 12:49:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 558771 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1FCntTO011247 for ; Tue, 15 Feb 2011 12:49:55 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754999Ab1BOMty (ORCPT ); Tue, 15 Feb 2011 07:49:54 -0500 Received: from na3sys009aog114.obsmtp.com ([74.125.149.211]:57081 "EHLO na3sys009aog114.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754988Ab1BOMty (ORCPT ); Tue, 15 Feb 2011 07:49:54 -0500 Received: from source ([209.85.213.41]) (using TLSv1) by na3sys009aob114.postini.com ([74.125.148.12]) with SMTP ID DSNKTVp2cXcH0+ymbC7F+c0Yx4n+zZ8u1cCe@postini.com; Tue, 15 Feb 2011 04:49:54 PST Received: by mail-yw0-f41.google.com with SMTP id 3so57722ywj.0 for ; Tue, 15 Feb 2011 04:49:53 -0800 (PST) Received: by 10.90.29.20 with SMTP id c20mr6170674agc.104.1297774193550; Tue, 15 Feb 2011 04:49:53 -0800 (PST) Received: from localhost (dragon.ti.com [192.94.94.33]) by mx.google.com with ESMTPS id 37sm4977644anr.4.2011.02.15.04.49.51 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 15 Feb 2011 04:49:52 -0800 (PST) From: Felipe Balbi To: Tony Lindgren Cc: Linux OMAP Mailing List , Felipe Balbi Subject: [PATCH 6/6] arm: omap2: clksel: fix compile warning Date: Tue, 15 Feb 2011 14:49:16 +0200 Message-Id: <1297774156-23312-7-git-send-email-balbi@ti.com> X-Mailer: git-send-email 1.7.4.rc2 In-Reply-To: <1297774156-23312-1-git-send-email-balbi@ti.com> References: <1297774156-23312-1-git-send-email-balbi@ti.com> Organization: Texas Instruments\n 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]); Tue, 15 Feb 2011 12:49:56 +0000 (UTC) diff --git a/arch/arm/mach-omap2/clkt_clksel.c b/arch/arm/mach-omap2/clkt_clksel.c index a781cd6..e25364d 100644 --- a/arch/arm/mach-omap2/clkt_clksel.c +++ b/arch/arm/mach-omap2/clkt_clksel.c @@ -97,7 +97,7 @@ static u8 _get_div_and_fieldval(struct clk *src_clk, struct clk *clk, u32 *field_val) { const struct clksel *clks; - const struct clksel_rate *clkr, *max_clkr; + const struct clksel_rate *clkr, *max_clkr = NULL; u8 max_div = 0; clks = _get_clksel_by_parent(clk, src_clk);