mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
OMAP3+: VP: update_errorgain(): return error if VP
Add check for valid VP in omap_vp_update_errorgain() Signed-off-by: Kevin Hilman <khilman@ti.com>
This commit is contained in:
parent
bea30ed65f
commit
8798c4ab56
@ -103,6 +103,9 @@ int omap_vp_update_errorgain(struct voltagedomain *voltdm,
|
||||
{
|
||||
struct omap_volt_data *volt_data;
|
||||
|
||||
if (!voltdm->vp)
|
||||
return -EINVAL;
|
||||
|
||||
/* Get volt_data corresponding to target_volt */
|
||||
volt_data = omap_voltage_get_voltdata(voltdm, target_volt);
|
||||
if (IS_ERR(volt_data))
|
||||
|
Loading…
x
Reference in New Issue
Block a user