diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2016-02-18 16:44:55 +0000 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2016-02-18 16:47:34 +0000 |
commit | b4eec7eb5e0408ecc0e450025dbb5ab3fe6cbc5c (patch) | |
tree | ef61a1289d04949023979220791302ec0655bdc4 /gpio.c | |
parent | 30f014726a0614f0e331c67604729723306007e1 (diff) | |
download | powerdebug-b4eec7eb5e0408ecc0e450025dbb5ab3fe6cbc5c.tar.gz |
Pass options to init functions.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'gpio.c')
-rw-r--r-- | gpio.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -375,10 +375,13 @@ out: /* * Initialize the gpio framework */ -int gpio_init(void) +int gpio_init(struct powerdebug_options *options) { int ret = 0; + if (!(options->flags & GPIO_OPTION)) + return 0; + ret = display_register(GPIO, &gpio_ops); if (ret) printf("error: gpio display register failed"); |