mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-18 03:44:27 +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…
Reference in New Issue
Block a user