aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2011-09-30 16:01:31 -0400
committerArnd Bergmann <arnd@arndb.de>2011-09-30 16:01:31 -0400
commiteff11ba9ebba475f2aedee74eebc459789f99ab6 (patch)
tree6329a23cb2ef41da0d4b8a6d741bd65167b0f897 /arch/arm/mach-omap2
parent23618f7faa8fdac93d4823d0372f4101d642b8b1 (diff)
parent2edc7ba5e8fdba327e16d3d0086e831c5fe6f577 (diff)
Merge branch 'for_3.2/voltage-cleanup' of git://gitorious.org/khilman/linux-omap-pm into omap/voltage
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r--arch/arm/mach-omap2/Makefile2
-rw-r--r--arch/arm/mach-omap2/voltage.h14
2 files changed, 0 insertions, 16 deletions
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile
index 8bd389d60138..512978586b2b 100644
--- a/arch/arm/mach-omap2/Makefile
+++ b/arch/arm/mach-omap2/Makefile
@@ -89,7 +89,6 @@ obj-$(CONFIG_ARCH_OMAP4) += prcm.o cm2xxx_3xxx.o cminst44xx.o \
89 vp44xx_data.o 89 vp44xx_data.o
90 90
91# OMAP voltage domains 91# OMAP voltage domains
92ifeq ($(CONFIG_PM),y)
93voltagedomain-common := voltage.o vc.o vp.o 92voltagedomain-common := voltage.o vc.o vp.o
94obj-$(CONFIG_ARCH_OMAP2) += $(voltagedomain-common) \ 93obj-$(CONFIG_ARCH_OMAP2) += $(voltagedomain-common) \
95 voltagedomains2xxx_data.o 94 voltagedomains2xxx_data.o
@@ -97,7 +96,6 @@ obj-$(CONFIG_ARCH_OMAP3) += $(voltagedomain-common) \
97 voltagedomains3xxx_data.o 96 voltagedomains3xxx_data.o
98obj-$(CONFIG_ARCH_OMAP4) += $(voltagedomain-common) \ 97obj-$(CONFIG_ARCH_OMAP4) += $(voltagedomain-common) \
99 voltagedomains44xx_data.o 98 voltagedomains44xx_data.o
100endif
101 99
102# OMAP powerdomain framework 100# OMAP powerdomain framework
103powerdomain-common += powerdomain.o powerdomain-common.o 101powerdomain-common += powerdomain.o powerdomain-common.o
diff --git a/arch/arm/mach-omap2/voltage.h b/arch/arm/mach-omap2/voltage.h
index 4c0980941991..16a1b092cf36 100644
--- a/arch/arm/mach-omap2/voltage.h
+++ b/arch/arm/mach-omap2/voltage.h
@@ -148,25 +148,11 @@ void omap_voltage_get_volttable(struct voltagedomain *voltdm,
148 struct omap_volt_data **volt_data); 148 struct omap_volt_data **volt_data);
149struct omap_volt_data *omap_voltage_get_voltdata(struct voltagedomain *voltdm, 149struct omap_volt_data *omap_voltage_get_voltdata(struct voltagedomain *voltdm,
150 unsigned long volt); 150 unsigned long volt);
151#ifdef CONFIG_PM
152int omap_voltage_register_pmic(struct voltagedomain *voltdm, 151int omap_voltage_register_pmic(struct voltagedomain *voltdm,
153 struct omap_voltdm_pmic *pmic); 152 struct omap_voltdm_pmic *pmic);
154void omap_change_voltscale_method(struct voltagedomain *voltdm, 153void omap_change_voltscale_method(struct voltagedomain *voltdm,
155 int voltscale_method); 154 int voltscale_method);
156int omap_voltage_late_init(void); 155int omap_voltage_late_init(void);
157#else
158static inline int omap_voltage_register_pmic(struct voltagedomain *voltdm,
159 struct omap_voltdm_pmic *pmic)
160{
161 return -EINVAL;
162}
163static inline void omap_change_voltscale_method(struct voltagedomain *voltdm,
164 int voltscale_method) {}
165static inline int omap_voltage_late_init(void)
166{
167 return -EINVAL;
168}
169#endif
170 156
171extern void omap2xxx_voltagedomains_init(void); 157extern void omap2xxx_voltagedomains_init(void);
172extern void omap3xxx_voltagedomains_init(void); 158extern void omap3xxx_voltagedomains_init(void);