diff options
Diffstat (limited to 'regulator.c')
-rw-r--r-- | regulator.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/regulator.c b/regulator.c index b38ddab..549a744 100644 --- a/regulator.c +++ b/regulator.c @@ -265,10 +265,13 @@ static struct display_ops regulator_ops = { .display = regulator_display, }; -int regulator_init(void) +int regulator_init(struct powerdebug_options *options) { int ret = 0; + if (!(options->flags & REGULATOR_OPTION)) + return 0; + ret = display_register(REGULATOR, ®ulator_ops); if (ret) printf("error: regulator display register failed"); |