提交 8798c4ab 编写于 作者: K Kevin Hilman

OMAP3+: VP: update_errorgain(): return error if VP

Add check for valid VP in omap_vp_update_errorgain()
Signed-off-by: NKevin Hilman <khilman@ti.com>
上级 bea30ed6
......@@ -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))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册