aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/pm.c
diff options
context:
space:
mode:
authorKevin Hilman <khilman@ti.com>2012-11-14 20:13:04 -0500
committerTony Lindgren <tony@atomide.com>2012-11-14 20:21:15 -0500
commit74d29168e9af59c9db1885e27493fbed4d24ef18 (patch)
treebf390fdd6b3cc2ff63d00bee24ef5adf9960a136 /arch/arm/mach-omap2/pm.c
parent6515b0f75af68ad5e36f5297bb6b9a5ba3e710d2 (diff)
ARM: OMAP2+: voltage: fixup oscillator handling when CONFIG_PM=n
commit 908b75e8 (ARM: OMAP: add support for oscillator setup) added a new API for oscillator setup, but is broken when CONFIG_PM=n. The new functions have dummy definitions when CONFIG_PM=n, but also have full implementations available, which conflict. To fix, wrap the PM implmentations in #ifdef CONFIG_PM. Cc: Tero Kristo <t-kristo@ti.com> Signed-off-by: Kevin Hilman <khilman@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/pm.c')
-rw-r--r--arch/arm/mach-omap2/pm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c
index 109a02e02d72..ef668c756db7 100644
--- a/arch/arm/mach-omap2/pm.c
+++ b/arch/arm/mach-omap2/pm.c
@@ -39,6 +39,7 @@ static struct omap_device_pm_latency *pm_lats;
39 */ 39 */
40int (*omap_pm_suspend)(void); 40int (*omap_pm_suspend)(void);
41 41
42#ifdef CONFIG_PM
42/** 43/**
43 * struct omap2_oscillator - Describe the board main oscillator latencies 44 * struct omap2_oscillator - Describe the board main oscillator latencies
44 * @startup_time: oscillator startup latency 45 * @startup_time: oscillator startup latency
@@ -68,6 +69,7 @@ void omap_pm_get_oscillator(u32 *tstart, u32 *tshut)
68 *tstart = oscillator.startup_time; 69 *tstart = oscillator.startup_time;
69 *tshut = oscillator.shutdown_time; 70 *tshut = oscillator.shutdown_time;
70} 71}
72#endif
71 73
72static int __init _init_omap_device(char *name) 74static int __init _init_omap_device(char *name)
73{ 75{