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

Commit 9b92da1f authored by Mark Brown's avatar Mark Brown
Browse files

regulator: core: Fix default return value for _get()



Now that we are defaulting to providing dummy regulators fix the logic
for substituting a dummy by making the default return code -EPROBE_DEFER.

Reported-by: default avatarThierry Reding <treding@nvidia.com>
Tested-by: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 4f0ac6da
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1247,7 +1247,7 @@ static struct regulator *_regulator_get(struct device *dev, const char *id,
	struct regulator_dev *rdev;
	struct regulator *regulator = ERR_PTR(-EPROBE_DEFER);
	const char *devname = NULL;
	int ret = 0;
	int ret = -EPROBE_DEFER;

	if (id == NULL) {
		pr_err("get() with no identifier\n");