Revert "power: regulator: Return success on attempt to disable an always-on regulator"
authorLokesh Vutla <lokeshvutla@ti.com>
Fri, 11 Jan 2019 09:45:50 +0000 (15:15 +0530)
committerSimon Glass <sjg@chromium.org>
Sat, 9 Feb 2019 19:50:22 +0000 (12:50 -0700)
commitf93fab312615ce0bc9aac33f9dcd876a3fed1290
tree5f09ee3aedec8a6deacd9f515982b9c1a7b3b003
parent91b3a1866b82329dd0d5333aa59141fccb1f2c17
Revert "power: regulator: Return success on attempt to disable an always-on regulator"

This reverts commit e17e0ceb83538c015a50b965547f2f4d38f81c5d.

It is advised to return an error when trying to disable an always-on
regulator and let the consumer driver handle the error if needed.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
drivers/power/regulator/regulator-uclass.c