From patchwork Wed May 5 18:47:31 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Aguirre Rodriguez, Sergio Alberto" X-Patchwork-Id: 97165 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o45IgSxl024057 for ; Wed, 5 May 2010 18:42:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757759Ab0EESm1 (ORCPT ); Wed, 5 May 2010 14:42:27 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:33466 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757524Ab0EESm0 (ORCPT ); Wed, 5 May 2010 14:42:26 -0400 Received: from dlep33.itg.ti.com ([157.170.170.112]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id o45IgPSV023552 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 5 May 2010 13:42:25 -0500 Received: from legion.dal.design.ti.com (localhost [127.0.0.1]) by dlep33.itg.ti.com (8.13.7/8.13.7) with ESMTP id o45IgOri015655; Wed, 5 May 2010 13:42:24 -0500 (CDT) Received: from localhost (dtx0091359-ubuntu-1.am.dhcp.ti.com [128.247.78.240]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id o45IgOP17178; Wed, 5 May 2010 13:42:24 -0500 (CDT) From: Sergio Aguirre To: Tony Lindgreen Cc: linux-omap@vger.kernel.org, Sergio Aguirre Subject: [PATCH] omap: gpio: Fix compilation warnings Date: Wed, 5 May 2010 13:47:31 -0500 Message-Id: <1273085251-6883-1-git-send-email-saaguirre@ti.com> X-Mailer: git-send-email 1.6.3.3 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]); Wed, 05 May 2010 18:42:28 +0000 (UTC) diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c index 45a225d..f0d5c2f 100644 --- a/arch/arm/plat-omap/gpio.c +++ b/arch/arm/plat-omap/gpio.c @@ -2036,7 +2036,7 @@ void omap2_gpio_prepare_for_retention(void) * IRQs will be generated. See OMAP2420 Errata item 1.101. */ for (i = 0; i < gpio_bank_count; i++) { struct gpio_bank *bank = &gpio_bank[i]; - u32 l1, l2; + u32 l1 = 0, l2 = 0; if (!(bank->enabled_non_wakeup_gpios)) continue; @@ -2093,7 +2093,7 @@ void omap2_gpio_resume_after_retention(void) return; for (i = 0; i < gpio_bank_count; i++) { struct gpio_bank *bank = &gpio_bank[i]; - u32 l, gen, gen0, gen1; + u32 l = 0, gen, gen0, gen1; if (!(bank->enabled_non_wakeup_gpios)) continue;