summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--skey.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/skey.c b/skey.c
index 590b682..0ffe0cd 100644
--- a/skey.c
+++ b/skey.c
@@ -192,6 +192,9 @@ static int __init skey_init (void) {
printk("skey: setting up update thread...\n");
update_task = kthread_run(skey_update_thread, NULL, "skey_update_thread");
printk(KERN_INFO "skey: module finished initiating\n");
+ //explicitly sets pin 4 and 15 to be inputs.
+ gpio_direction_input(4);
+ gpio_direction_input(15);
return 0;
}
/*