From: Simon Glass Date: Fri, 22 Jan 2016 02:43:59 +0000 (-0700) Subject: dm: power: Allow regulators to not implement all operations X-Git-Tag: v2016.03-rc1~201 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=364809de31a06da45d9b6f84cffbdb34bcfddc7a;p=platform%2Fkernel%2Fu-boot.git dm: power: Allow regulators to not implement all operations Some regulators will not implement any operations (e.g. fixed regulators). This is not an error, so allow the autoset process to continue when one of these regulators is found. Signed-off-by: Simon Glass --- diff --git a/drivers/power/regulator/regulator-uclass.c b/drivers/power/regulator/regulator-uclass.c index fec2886..9fe07f2 100644 --- a/drivers/power/regulator/regulator-uclass.c +++ b/drivers/power/regulator/regulator-uclass.c @@ -334,6 +334,8 @@ int regulators_enable_boot_on(bool verbose) } if (verbose) regulator_show(dev, ret); + if (ret == -ENOSYS) + ret = 0; } return ret;