From patchwork Tue Dec 29 22:51:25 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 70149 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.2) with ESMTP id nBTMumuD031446 for ; Tue, 29 Dec 2009 22:56:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752178AbZL2W4j (ORCPT ); Tue, 29 Dec 2009 17:56:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751624AbZL2W4i (ORCPT ); Tue, 29 Dec 2009 17:56:38 -0500 Received: from ns1.siteground211.com ([209.62.36.12]:58946 "EHLO serv01.siteground211.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751991AbZL2W4e (ORCPT ); Tue, 29 Dec 2009 17:56:34 -0500 Received: from [91.154.126.168] (port=14121 helo=localhost.localdomain) by serv01.siteground211.com with esmtpa (Exim 4.69) (envelope-from ) id 1NPkzQ-00071i-3y; Tue, 29 Dec 2009 16:56:32 -0600 From: Felipe Balbi To: tony@atomide.com Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Felipe Balbi Subject: [patch-v2.6.33-rc2+ 05/12] arm: omap: gpmc: kill compile warning Date: Wed, 30 Dec 2009 00:51:25 +0200 Message-Id: <1262127092-14878-6-git-send-email-felipe.balbi@nokia.com> X-Mailer: git-send-email 1.6.6.35.g1d85d In-Reply-To: <1262127092-14878-1-git-send-email-felipe.balbi@nokia.com> References: <1262127092-14878-1-git-send-email-felipe.balbi@nokia.com> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - serv01.siteground211.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - felipebalbi.com Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index bd8cb59..32f2c51 100644 --- a/arch/arm/mach-omap2/gpmc.c +++ b/arch/arm/mach-omap2/gpmc.c @@ -547,9 +547,10 @@ void __init gpmc_init(void) #ifdef CONFIG_ARCH_OMAP3 static struct omap3_gpmc_regs gpmc_context; -void omap3_gpmc_save_context() +void omap3_gpmc_save_context(void) { int i; + gpmc_context.sysconfig = gpmc_read_reg(GPMC_SYSCONFIG); gpmc_context.irqenable = gpmc_read_reg(GPMC_IRQENABLE); gpmc_context.timeout_ctrl = gpmc_read_reg(GPMC_TIMEOUT_CONTROL); @@ -578,9 +579,10 @@ void omap3_gpmc_save_context() } } -void omap3_gpmc_restore_context() +void omap3_gpmc_restore_context(void) { int i; + gpmc_write_reg(GPMC_SYSCONFIG, gpmc_context.sysconfig); gpmc_write_reg(GPMC_IRQENABLE, gpmc_context.irqenable); gpmc_write_reg(GPMC_TIMEOUT_CONTROL, gpmc_context.timeout_ctrl);