From patchwork Thu Oct 29 08:30:18 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Jokiniemi X-Patchwork-Id: 56423 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 n9T8UJ4i022208 for ; Thu, 29 Oct 2009 08:30:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753299AbZJ2IaK (ORCPT ); Thu, 29 Oct 2009 04:30:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753221AbZJ2IaJ (ORCPT ); Thu, 29 Oct 2009 04:30:09 -0400 Received: from smtp1.digia.com ([82.118.214.156]:12133 "EHLO smtp1.digia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753093AbZJ2IaH (ORCPT ); Thu, 29 Oct 2009 04:30:07 -0400 Received: from smtp1.digia.com (unknown [127.0.0.1]) by IMSA (Postfix) with ESMTP id 5777C478868; Thu, 29 Oct 2009 10:30:11 +0200 (EET) Received: from IT-EXCH02-HKI.it.local (unknown [10.9.52.55]) by smtp1.digia.com (Postfix) with ESMTP id 49A384787B2; Thu, 29 Oct 2009 10:30:11 +0200 (EET) Received: from localhost.localdomain (10.120.146.33) by IT-EXCH02-HKI.it.local (10.9.52.56) with Microsoft SMTP Server id 8.1.340.0; Thu, 29 Oct 2009 10:30:11 +0200 From: Kalle Jokiniemi To: CC: , , , Kalle Jokiniemi Subject: [PATCH 1/3] OMAP:PM: Fix non-cpu idle builds using omap3_pm_init_cpuidle Date: Thu, 29 Oct 2009 10:30:18 +0200 Message-ID: <1256805020-7402-2-git-send-email-kalle.jokiniemi@digia.com> X-Mailer: git-send-email 1.5.4.3 In-Reply-To: <1256805020-7402-1-git-send-email-kalle.jokiniemi@digia.com> References: <> <1256805020-7402-1-git-send-email-kalle.jokiniemi@digia.com> 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.h b/arch/arm/mach-omap2/pm.h index b576424..b9421e8 100644 --- a/arch/arm/mach-omap2/pm.h +++ b/arch/arm/mach-omap2/pm.h @@ -49,7 +49,14 @@ struct cpuidle_params { }; extern void omap3_pm_init_vc(struct prm_setup_vc *setup_vc); +#ifdef CONFIG_CPU_IDLE extern void omap3_pm_init_cpuidle(struct cpuidle_params *cpuidle_board_params); +#else +static inline void omap3_pm_init_cpuidle( + struct cpuidle_params *cpuidle_board_params) +{ +} +#endif extern int resource_set_opp_level(int res, u32 target_level, int flags); extern int resource_access_opp_lock(int res, int delta);