aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Hilman <khilman@ti.com>2011-07-15 19:38:10 -0400
committerKevin Hilman <khilman@ti.com>2011-09-15 15:09:08 -0400
commitcc6962dbab223ae51b47c8057d39d89ac6af0d35 (patch)
treede3fb8315750b1a7e89b3f8cf729c7a3f23da19a
parent8798c4ab56d8f726092870cb2cf15c5a7a0a93bf (diff)
OMAP3+: VP: remove unused omap_vp_get_curr_volt()
Signed-off-by: Kevin Hilman <khilman@ti.com>
-rw-r--r--arch/arm/mach-omap2/vp.c34
-rw-r--r--arch/arm/mach-omap2/vp.h1
2 files changed, 0 insertions, 35 deletions
diff --git a/arch/arm/mach-omap2/vp.c b/arch/arm/mach-omap2/vp.c
index 29698acc2aea..24020ea2b7e4 100644
--- a/arch/arm/mach-omap2/vp.c
+++ b/arch/arm/mach-omap2/vp.c
@@ -209,40 +209,6 @@ int omap_vp_forceupdate_scale(struct voltagedomain *voltdm,
209} 209}
210 210
211/** 211/**
212 * omap_vp_get_curr_volt() - API to get the current vp voltage.
213 * @voltdm: pointer to the VDD.
214 *
215 * This API returns the current voltage for the specified voltage processor
216 */
217unsigned long omap_vp_get_curr_volt(struct voltagedomain *voltdm)
218{
219 struct omap_vp_instance *vp = voltdm->vp;
220 u8 curr_vsel;
221
222 if (!voltdm || IS_ERR(voltdm)) {
223 pr_warning("%s: VDD specified does not exist!\n", __func__);
224 return 0;
225 }
226
227 if (!voltdm->read) {
228 pr_err("%s: No read API for reading vdd_%s regs\n",
229 __func__, voltdm->name);
230 return 0;
231 }
232
233 curr_vsel = (voltdm->read(vp->voltage) & vp->common->vpvoltage_mask)
234 >> __ffs(vp->common->vpvoltage_mask);
235
236 if (!voltdm->pmic || !voltdm->pmic->vsel_to_uv) {
237 pr_warning("%s: PMIC function to convert vsel to voltage"
238 "in uV not registerd\n", __func__);
239 return 0;
240 }
241
242 return voltdm->pmic->vsel_to_uv(curr_vsel);
243}
244
245/**
246 * omap_vp_enable() - API to enable a particular VP 212 * omap_vp_enable() - API to enable a particular VP
247 * @voltdm: pointer to the VDD whose VP is to be enabled. 213 * @voltdm: pointer to the VDD whose VP is to be enabled.
248 * 214 *
diff --git a/arch/arm/mach-omap2/vp.h b/arch/arm/mach-omap2/vp.h
index 7dc5cb3cd60c..7c155d248aa3 100644
--- a/arch/arm/mach-omap2/vp.h
+++ b/arch/arm/mach-omap2/vp.h
@@ -120,7 +120,6 @@ extern struct omap_vp_instance omap4_vp_core;
120void omap_vp_init(struct voltagedomain *voltdm); 120void omap_vp_init(struct voltagedomain *voltdm);
121void omap_vp_enable(struct voltagedomain *voltdm); 121void omap_vp_enable(struct voltagedomain *voltdm);
122void omap_vp_disable(struct voltagedomain *voltdm); 122void omap_vp_disable(struct voltagedomain *voltdm);
123unsigned long omap_vp_get_curr_volt(struct voltagedomain *voltdm);
124int omap_vp_forceupdate_scale(struct voltagedomain *voltdm, 123int omap_vp_forceupdate_scale(struct voltagedomain *voltdm,
125 unsigned long target_volt); 124 unsigned long target_volt);
126int omap_vp_update_errorgain(struct voltagedomain *voltdm, 125int omap_vp_update_errorgain(struct voltagedomain *voltdm,