From patchwork Fri Jan 15 13:13:06 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 73171 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 o0FDDE8G012135 for ; Fri, 15 Jan 2010 13:13:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755837Ab0AONNM (ORCPT ); Fri, 15 Jan 2010 08:13:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753099Ab0AONNM (ORCPT ); Fri, 15 Jan 2010 08:13:12 -0500 Received: from bear.ext.ti.com ([192.94.94.41]:47450 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752177Ab0AONNM (ORCPT ); Fri, 15 Jan 2010 08:13:12 -0500 Received: from dlep34.itg.ti.com ([157.170.170.115]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id o0FDD9RV000721 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 15 Jan 2010 07:13:09 -0600 Received: from legion.dal.design.ti.com (localhost [127.0.0.1]) by dlep34.itg.ti.com (8.13.7/8.13.7) with ESMTP id o0FDD9Mj016955; Fri, 15 Jan 2010 07:13:09 -0600 (CST) Received: from senorita (senorita.am.dhcp.ti.com [128.247.75.1]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id o0FDD9Z21518; Fri, 15 Jan 2010 07:13:09 -0600 (CST) Received: by senorita (Postfix, from userid 1000) id AC6B6C18D; Fri, 15 Jan 2010 07:13:08 -0600 (CST) From: Nishanth Menon To: linux-omap Cc: Nishanth Menon , Kevin Hilman , Paul Walmsley Subject: [PM-WIP-OPP][PATCH] pm: omap3: fix build error for PM disabled Date: Fri, 15 Jan 2010 07:13:06 -0600 Message-Id: <1263561186-12994-1-git-send-email-nm@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 diff --git a/arch/arm/mach-omap2/pm.h b/arch/arm/mach-omap2/pm.h index d257225..5fc056f 100644 --- a/arch/arm/mach-omap2/pm.h +++ b/arch/arm/mach-omap2/pm.h @@ -69,7 +69,13 @@ static inline void omap3_pm_init_vc(struct prm_setup_vc *setup_vc) * Initialize the basic opp table here, board files could choose to modify opp * table after the basic initialization */ +#ifdef CONFIG_PM extern void omap3_pm_init_opp_table(void); +#else +static inline void omap3_pm_init_opp_table(void) +{ +} +#endif extern int omap3_pm_get_suspend_state(struct powerdomain *pwrdm); extern int omap3_pm_set_suspend_state(struct powerdomain *pwrdm, int state);