]> git.feebdaed.xyz Git - linuxyz.git/commitdiff
gpio17
authorseantywork <seantywork@gmail.com>
Fri, 14 Nov 2025 07:49:43 +0000 (16:49 +0900)
committerseantywork <seantywork@gmail.com>
Fri, 14 Nov 2025 07:49:43 +0000 (16:49 +0900)
kdev-gpio/kdev_gpio.c

index a80f137063b771bae05e7414e7f6788bdcbc717a..cc17aa3c73a17b252905d341ad449b6e923015a8 100644 (file)
@@ -27,7 +27,7 @@ static int __init kdev_gpio_init(void){
     struct device_node* dn = NULL;
     struct device* d = NULL;
     struct gpio_desc* gd = NULL;
-    dn = of_find_node_by_name(NULL, "gpiochip0");
+    dn = of_find_node_by_name(NULL, "GPIO17");
     if(dn == NULL){
         printk("failed to find device node: gpio\n");
         return -1;