| Submitter | Kalle Jokiniemi |
|---|---|
| Date | 2009-10-29 08:30:18 |
| Message ID | <1256805020-7402-2-git-send-email-kalle.jokiniemi@digia.com> |
| Download | mbox | patch |
| Permalink | /patch/56423/ |
| State | Accepted |
| Delegated to: | Kevin Hilman |
| Headers | show |
Comments
Patch
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);
Building without CONFIG_CPU_IDLE causes build to fail if cpu idle parameters are tried to pass using omap3_pm_init_cpuidle function. Fixed by defining a dummy function for non-cpu idle builds. Signed-off-by: Kalle Jokiniemi <kalle.jokiniemi@digia.com> --- arch/arm/mach-omap2/pm.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)