aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/vc.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/vc.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/vc.c')
-rw-r--r--arch/arm/mach-omap2/vc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/vc.c b/arch/arm/mach-omap2/vc.c
index 687aa86c0d5e..a89ec8affed4 100644
--- a/arch/arm/mach-omap2/vc.c
+++ b/arch/arm/mach-omap2/vc.c
@@ -666,6 +666,7 @@ static u8 omap_vc_calc_vsel(struct voltagedomain *voltdm, u32 uvolt)
666 return voltdm->pmic->uv_to_vsel(uvolt); 666 return voltdm->pmic->uv_to_vsel(uvolt);
667} 667}
668 668
669#ifdef CONFIG_PM
669/** 670/**
670 * omap_pm_setup_sr_i2c_pcb_length - set length of SR I2C traces on PCB 671 * omap_pm_setup_sr_i2c_pcb_length - set length of SR I2C traces on PCB
671 * @mm: length of the PCB trace in millimetres 672 * @mm: length of the PCB trace in millimetres
@@ -678,6 +679,7 @@ void __init omap_pm_setup_sr_i2c_pcb_length(u32 mm)
678{ 679{
679 sr_i2c_pcb_length = mm; 680 sr_i2c_pcb_length = mm;
680} 681}
682#endif
681 683
682void __init omap_vc_init_channel(struct voltagedomain *voltdm) 684void __init omap_vc_init_channel(struct voltagedomain *voltdm)
683{ 685{