aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-msm/vreg.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-msm/vreg.c')
-rw-r--r--arch/arm/mach-msm/vreg.c2
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)
if (!strcmp(vregs[n].name, id))
return vregs + n;
}
- return 0;
+ return ERR_PTR(-ENOENT);
}
void vreg_put(struct vreg *vreg)