dm: power: Don't return an error when regulators are not autoset
authorSimon Glass <sjg@chromium.org>
Fri, 3 Jul 2015 00:16:06 +0000 (18:16 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 6 Aug 2015 03:06:13 +0000 (21:06 -0600)
commitd08504d18a0a6af2ba6171a4a3e71a032d2836b6
tree95fde4a8651d30c45c27c21ea706a3c4198b9daa
parent75a429f1a299cf4cd4ab3f18eb75a7eb632776c9
dm: power: Don't return an error when regulators are not autoset

Not all regulators can be set up automatically. Adjust the code so that
regulators_enable_boot_on() will return success when some are skipped.
Only genuine errors are reported.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Przemyslaw Marczak <p.marczak@samsung.com>
drivers/power/regulator/regulator-uclass.c