[powerdebug 35/35] Don't exit when the regulator init fails

Daniel Lezcano daniel.lezcano at free.fr
Sat Mar 26 21:06:23 UTC 2011


We just disable the option

Signed-off-by: Daniel Lezcano <daniel.lezcano at free.fr>
---
 powerdebug.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/powerdebug.c b/powerdebug.c
index 86f51bc..0f86e0c 100644
--- a/powerdebug.c
+++ b/powerdebug.c
@@ -377,7 +377,7 @@ int main(int argc, char **argv)
 	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()) {
-- 
1.7.1




More information about the linaro-dev mailing list