From patchwork Thu Jan 14 17:05:55 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: 72902 X-Patchwork-Delegate: khilman@deeprootsystems.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 o0EH3Pxf031404 for ; Thu, 14 Jan 2010 17:03:25 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757321Ab0ANRDX (ORCPT ); Thu, 14 Jan 2010 12:03:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757102Ab0ANRDX (ORCPT ); Thu, 14 Jan 2010 12:03:23 -0500 Received: from bear.ext.ti.com ([192.94.94.41]:57478 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756851Ab0ANRDW (ORCPT ); Thu, 14 Jan 2010 12:03:22 -0500 Received: from dlep36.itg.ti.com ([157.170.170.91]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id o0EH37BY027972 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 14 Jan 2010 11:03:07 -0600 Received: from dlep26.itg.ti.com (localhost [127.0.0.1]) by dlep36.itg.ti.com (8.13.8/8.13.8) with ESMTP id o0EH37RR023498; Thu, 14 Jan 2010 11:03:07 -0600 (CST) Received: from dsbe71.ent.ti.com (localhost [127.0.0.1]) by dlep26.itg.ti.com (8.13.8/8.13.8) with ESMTP id o0EH3765004271; Thu, 14 Jan 2010 11:03:07 -0600 (CST) Received: from dlee02.ent.ti.com ([157.170.170.17]) by dsbe71.ent.ti.com ([156.117.232.23]) with mapi; Thu, 14 Jan 2010 11:03:06 -0600 From: "Aguirre, Sergio" To: Kevin Hilman CC: "linux-omap@vger.kernel.org" Date: Thu, 14 Jan 2010 11:05:55 -0600 Subject: [PATCH] PM debug: Fix warning when no CONFIG_DEBUG_FS Thread-Topic: [PATCH] PM debug: Fix warning when no CONFIG_DEBUG_FS Thread-Index: AcqVO9WBeQE926xATlSDRa9eWJlKfg== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 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/pm-debug.c b/arch/arm/mach-omap2/pm-debug.c index 860b755..9727484 100644 --- a/arch/arm/mach-omap2/pm-debug.c +++ b/arch/arm/mach-omap2/pm-debug.c @@ -54,8 +54,6 @@ int omap2_pm_debug; regs[reg_count++].val = \ __raw_readl(OMAP2_L4_IO_ADDRESS(0x480fe000 + (off))) -static int __init pm_dbg_init(void); - void omap2_pm_dump(int mode, int resume, unsigned int us) { struct reg { @@ -167,6 +165,8 @@ struct dentry *pm_dbg_dir; static int pm_dbg_init_done; +static int __init pm_dbg_init(void); + enum { DEBUG_FILE_COUNTERS = 0, DEBUG_FILE_TIMERS,