diff options
author | Kevin Hilman | 2011-07-16 01:38:10 +0200 |
---|---|---|
committer | Kevin Hilman | 2011-09-15 21:09:08 +0200 |
commit | cc6962dbab223ae51b47c8057d39d89ac6af0d35 (patch) | |
tree | de3fb8315750b1a7e89b3f8cf729c7a3f23da19a /arch/arm/mach-omap2/vp.c | |
parent | OMAP3+: VP: update_errorgain(): return error if VP (diff) | |
download | kernel-qcow2-linux-cc6962dbab223ae51b47c8057d39d89ac6af0d35.tar.gz kernel-qcow2-linux-cc6962dbab223ae51b47c8057d39d89ac6af0d35.tar.xz kernel-qcow2-linux-cc6962dbab223ae51b47c8057d39d89ac6af0d35.zip |
OMAP3+: VP: remove unused omap_vp_get_curr_volt()
Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/vp.c')
-rw-r--r-- | arch/arm/mach-omap2/vp.c | 34 |
1 files changed, 0 insertions, 34 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, } /** - * omap_vp_get_curr_volt() - API to get the current vp voltage. - * @voltdm: pointer to the VDD. - * - * This API returns the current voltage for the specified voltage processor - */ -unsigned long omap_vp_get_curr_volt(struct voltagedomain *voltdm) -{ - struct omap_vp_instance *vp = voltdm->vp; - u8 curr_vsel; - - if (!voltdm || IS_ERR(voltdm)) { - pr_warning("%s: VDD specified does not exist!\n", __func__); - return 0; - } - - if (!voltdm->read) { - pr_err("%s: No read API for reading vdd_%s regs\n", - __func__, voltdm->name); - return 0; - } - - curr_vsel = (voltdm->read(vp->voltage) & vp->common->vpvoltage_mask) - >> __ffs(vp->common->vpvoltage_mask); - - if (!voltdm->pmic || !voltdm->pmic->vsel_to_uv) { - pr_warning("%s: PMIC function to convert vsel to voltage" - "in uV not registerd\n", __func__); - return 0; - } - - return voltdm->pmic->vsel_to_uv(curr_vsel); -} - -/** * omap_vp_enable() - API to enable a particular VP * @voltdm: pointer to the VDD whose VP is to be enabled. * |