aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@free.fr>2011-03-26 22:06:23 +0100
committerAmit Kucheria <amit.kucheria@linaro.org>2011-04-04 03:26:08 +0300
commit6e48fa45774c09046ac8a30476751da7bffdc6c0 (patch)
tree744e9766c905c0387f6b9474f246b5fe196065c2
parentd3ffa81848853f29b4c1a3c2baa8ee7687290287 (diff)
downloadpowerdebug-6e48fa45774c09046ac8a30476751da7bffdc6c0.tar.gz
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>
-rw-r--r--powerdebug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/powerdebug.c b/powerdebug.c
index 230155b..4d55f17 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()) {