mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 18:11:56 +00:00
arm: msm: return error pointer in vreg_get if vreg not found
Signed-off-by: Steve Muckle <smuckle@quicinc.com>
This commit is contained in:
parent
2012e49e8a
commit
0c50b444b6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user