Disabled regulator supply validation in rockchi64 current

Works around all those "Failed to register regulator: -517" errors
This commit is contained in:
Piotr Szczepanik 2021-11-06 22:06:40 +01:00
parent 2587e97587
commit d178ad02bf
No known key found for this signature in database
GPG Key ID: 0305358EB314F205

View File

@ -0,0 +1,17 @@
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index 798f99091..9f3b09d05 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -1422,12 +1422,6 @@ static int set_machine_constraints(struct regulator_dev *rdev)
* and we have control then make sure it is enabled.
*/
if (rdev->constraints->always_on || rdev->constraints->boot_on) {
- /* If we want to enable this regulator, make sure that we know
- * the supplying regulator.
- */
- if (rdev->supply_name && !rdev->supply)
- return -EPROBE_DEFER;
-
if (rdev->supply) {
ret = regulator_enable(rdev->supply);
if (ret < 0) {