提交 0c50b444 编写于 作者: S Steve Muckle 提交者: Daniel Walker

arm: msm: return error pointer in vreg_get if vreg not found

Signed-off-by: NSteve Muckle <smuckle@quicinc.com>
上级 2012e49e
...@@ -70,7 +70,7 @@ struct vreg *vreg_get(struct device *dev, const char *id) ...@@ -70,7 +70,7 @@ struct vreg *vreg_get(struct device *dev, const char *id)
if (!strcmp(vregs[n].name, id)) if (!strcmp(vregs[n].name, id))
return vregs + n; return vregs + n;
} }
return 0; return ERR_PTR(-ENOENT);
} }
void vreg_put(struct vreg *vreg) void vreg_put(struct vreg *vreg)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册