Disabled regulator supply validation in rockchi64 current
Works around all those "Failed to register regulator: -517" errors
This commit is contained in:
parent
2587e97587
commit
d178ad02bf
@ -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) {
|
||||
Loading…
Reference in New Issue
Block a user