1
0
Fork 0

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

Signed-off-by: Steve Muckle <smuckle@quicinc.com>
hifive-unleashed-5.1
Steve Muckle 2010-03-04 12:38:05 -08:00 committed by Daniel Walker
parent 2012e49e8a
commit 0c50b444b6
1 changed files with 1 additions and 1 deletions

View File

@ -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)