Skip to content
Snippets Groups Projects
Commit 0c50b444 authored by Steve Muckle's avatar Steve Muckle Committed by Daniel Walker
Browse files

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

parent 2012e49e
No related merge requests found
...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment