Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)