From patchwork Thu Mar 12 20:58:27 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sanjeev Premi X-Patchwork-Id: 11531 X-Patchwork-Delegate: khilman@deeprootsystems.com Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n2CKxJGW022854 for ; Thu, 12 Mar 2009 20:59:19 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753839AbZCLU6j (ORCPT ); Thu, 12 Mar 2009 16:58:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757498AbZCLU6j (ORCPT ); Thu, 12 Mar 2009 16:58:39 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:33782 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757492AbZCLU6i (ORCPT ); Thu, 12 Mar 2009 16:58:38 -0400 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id n2CKwUwD023519 for ; Thu, 12 Mar 2009 15:58:36 -0500 Received: from localhost.localdomain (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id n2CKwRUu025726; Fri, 13 Mar 2009 02:28:28 +0530 (IST) From: Sanjeev Premi To: linux-omap@vger.kernel.org Cc: Sanjeev Premi Subject: [PATCH] PM: Fix compile warnings with !CONFIG_OMAP_PM_SRF Date: Fri, 13 Mar 2009 02:28:27 +0530 Message-Id: <1236891507-5687-1-git-send-email-premi@ti.com> X-Mailer: git-send-email 1.5.6 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Fixes the compile warnings: CC arch/arm/mach-omap2/pm.o arch/arm/mach-omap2/pm.c:47: warning: 'vdd1_locked' defined but not used arch/arm/mach-omap2/pm.c:48: warning: 'vdd2_locked' defined but not used Signed-off-by: Sanjeev Premi --- arch/arm/mach-omap2/pm.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c index 61c6dfb..0fe6f1a 100644 --- a/arch/arm/mach-omap2/pm.c +++ b/arch/arm/mach-omap2/pm.c @@ -44,8 +44,10 @@ unsigned short clocks_off_while_idle; unsigned short enable_off_mode; unsigned short voltage_off_while_idle; atomic_t sleep_block = ATOMIC_INIT(0); +#ifdef CONFIG_OMAP_PM_SRF static int vdd1_locked; static int vdd2_locked; +#endif static ssize_t idle_show(struct kobject *, struct kobj_attribute *, char *); static ssize_t idle_store(struct kobject *k, struct kobj_attribute *,