Skip to content

Commit

Permalink
OMAP3+: VP: update_errorgain(): return error if VP
Browse files Browse the repository at this point in the history
Add check for valid VP in omap_vp_update_errorgain()

Signed-off-by: Kevin Hilman <khilman@ti.com>
  • Loading branch information
Kevin Hilman committed Sep 15, 2011
1 parent bea30ed commit 8798c4a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/arm/mach-omap2/vp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 8798c4a

Please sign in to comment.