Skip to content

Commit

Permalink
arm: msm: return error pointer in vreg_get if vreg not found
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Muckle <smuckle@quicinc.com>
  • Loading branch information
Steve Muckle authored and Daniel Walker committed May 12, 2010
1 parent 2012e49 commit 0c50b44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-msm/vreg.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ struct vreg *vreg_get(struct device *dev, const char *id)
if (!strcmp(vregs[n].name, id))
return vregs + n;
}
return 0;
return ERR_PTR(-ENOENT);
}

void vreg_put(struct vreg *vreg)
Expand Down

0 comments on commit 0c50b44

Please sign in to comment.