Commit 0c50b444 authored by Steve Muckle's avatar Steve Muckle Committed by Daniel Walker

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

Signed-off-by: default avatarSteve Muckle <smuckle@quicinc.com>
parent 2012e49e
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment