aboutsummaryrefslogtreecommitdiff
path: root/gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpio.c')
-rw-r--r--gpio.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gpio.c b/gpio.c
index 8fd3e5c..36dedd1 100644
--- a/gpio.c
+++ b/gpio.c
@@ -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");