diff options
author | Steve Muckle <smuckle@quicinc.com> | 2010-03-04 15:38:05 -0500 |
---|---|---|
committer | Daniel Walker <dwalker@codeaurora.org> | 2010-05-12 12:14:34 -0400 |
commit | 0c50b444b69f49e38d16b974993a626ad74c59a7 (patch) | |
tree | 7872d6666fc6ff88afbea74f0a53901f2e8700c3 /arch/arm/mach-msm/vreg.c | |
parent | 2012e49e8ad4ae432cf1667e945b0f335c3e6d38 (diff) |
arm: msm: return error pointer in vreg_get if vreg not found
Signed-off-by: Steve Muckle <smuckle@quicinc.com>
Diffstat (limited to 'arch/arm/mach-msm/vreg.c')
-rw-r--r-- | arch/arm/mach-msm/vreg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-msm/vreg.c b/arch/arm/mach-msm/vreg.c index fcb0b9f25684..a839e1913c5b 100644 --- a/arch/arm/mach-msm/vreg.c +++ b/arch/arm/mach-msm/vreg.c | |||
@@ -70,7 +70,7 @@ struct vreg *vreg_get(struct device *dev, const char *id) | |||
70 | if (!strcmp(vregs[n].name, id)) | 70 | if (!strcmp(vregs[n].name, id)) |
71 | return vregs + n; | 71 | return vregs + n; |
72 | } | 72 | } |
73 | return 0; | 73 | return ERR_PTR(-ENOENT); |
74 | } | 74 | } |
75 | 75 | ||
76 | void vreg_put(struct vreg *vreg) | 76 | void vreg_put(struct vreg *vreg) |