Don't exit when the regulator init fails
We just disable the option
Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr>
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
diff --git a/powerdebug.c b/powerdebug.c
index 230155b..4d55f17 100644
--- a/powerdebug.c
+++ b/powerdebug.c
@@ -377,7 +377,7 @@
regulators_info = regulator_init(&numregulators);
if (!regulators_info) {
printf("not enough memory to allocate regulators info\n");
- return 1;
+ options->regulators = false;
}
if (clock_init()) {