linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] regulator: core: Allow dummy regulators for supplies
@ 2017-04-11 20:34 Mark Brown
  2017-04-11 20:36 ` Mark Brown
  2017-04-14 17:12 ` Applied "regulator: core: Allow dummy regulators for supplies" to the regulator tree Mark Brown
  0 siblings, 2 replies; 6+ messages in thread
From: Mark Brown @ 2017-04-11 20:34 UTC (permalink / raw)
  To: Dong Aisheng
  Cc: Liam Girdwood, linux-kernel, shawnguo, yibin.gong, Mark Brown

Rather than just not resolving the supply when there is explicitly no
supply mapping fall through and allow a dummy supply to be substituted.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
 drivers/regulator/core.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index 82205cc5daa7..1e7e6d361238 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -1533,14 +1533,6 @@ static int regulator_resolve_supply(struct regulator_dev *rdev)
 	if (IS_ERR(r)) {
 		ret = PTR_ERR(r);
 
-		if (ret == -ENODEV) {
-			/*
-			 * No supply was specified for this regulator and
-			 * there will never be one.
-			 */
-			return 0;
-		}
-
 		/* Did the lookup explicitly defer for us? */
 		if (ret == -EPROBE_DEFER)
 			return ret;
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-04-14 17:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-11 20:34 [PATCH] regulator: core: Allow dummy regulators for supplies Mark Brown
2017-04-11 20:36 ` Mark Brown
2017-04-12 15:33   ` A.S. Dong
2017-04-13 12:20     ` Mark Brown
2017-04-13 13:44       ` Dong Aisheng
2017-04-14 17:12 ` Applied "regulator: core: Allow dummy regulators for supplies" to the regulator tree Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).