summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--skey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/skey.c b/skey.c
index 70955f4..9025664 100644
--- a/skey.c
+++ b/skey.c
@@ -146,7 +146,7 @@ static int __init skey_init (void) {
return -EINVAL;
}
//requests access of the GPIO
- if (gpio_request_one(row_pins[j], GPIOF_DIR_OUT_INIT_LOW ,rlabels[j])) {
+ if (gpio_request_one(row_pins[j], GPIOF_OUT_INIT_LOW ,rlabels[j])) {
printk(KERN_ALERT "skey: row_pins[%d], BCM %d request failed\n", j, row_pins[j]);
return -EINVAL;
}