summaryrefslogtreecommitdiff
path: root/io-module/mts_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io-module/mts_io.c')
-rw-r--r--io-module/mts_io.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/io-module/mts_io.c b/io-module/mts_io.c
index 0710345..6ce8981 100644
--- a/io-module/mts_io.c
+++ b/io-module/mts_io.c
@@ -476,6 +476,7 @@ static void cleanup(void)
static int __init mts_io_init(void)
{
+ struct gpio_pin *pin;
int ret;
int port_index;
@@ -522,6 +523,13 @@ static int __init mts_io_init(void)
return ret;
}
+ for (pin = gpio_pins; *pin->name; pin++) {
+ ret = gpio_request_one(pin->pin.gpio, pin->pin.flags, pin->pin.label);
+ if (ret) {
+ log_debug("could not request pin %s (%d) but it could have already been requested under a different pin name", pin->name, ret);
+ }
+ }
+
// start the reset handler
reset_callback(NULL);