summaryrefslogtreecommitdiffstats
path: root/pwrbutton/button_power_obj.c
diff options
context:
space:
mode:
Diffstat (limited to 'pwrbutton/button_power_obj.c')
-rw-r--r--pwrbutton/button_power_obj.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pwrbutton/button_power_obj.c b/pwrbutton/button_power_obj.c
index 7b27986..58a9cad 100644
--- a/pwrbutton/button_power_obj.c
+++ b/pwrbutton/button_power_obj.c
@@ -114,6 +114,7 @@ on_bus_acquired(GDBusConnection *connection,
int rc = GPIO_OK;
do {
rc = gpio_init(connection,&gpio_button);
+ gpio_inits_done();
if(rc != GPIO_OK) { break; }
rc = gpio_open_interrupt(&gpio_button,on_button_interrupt,object);
if(rc != GPIO_OK) { break; }
OpenPOWER on IntegriCloud